Add how to claim desktop version of beat saber guide

This commit is contained in:
Zagrios
2025-02-25 15:03:47 +01:00
parent ea7527d952
commit abfd0cf4dd
5 changed files with 26 additions and 3 deletions
@@ -60,7 +60,7 @@ export const LoginToMetaModal: ModalComponent<string> = ({ resolver }) => {
<p className="font-bold">{t("modals.connect-to-meta.body.token-needed")}</p>
<p>{t("modals.connect-to-meta.body.need-cookie-enabled")}</p>
<p className="text-warning-400">You must own the desktop version of Beat Saber. If you bought it on the standalone store, follow <a className="underline cursor-pointer">this guide</a> to claim it.</p>
<p className="text-warning-400">You must own the desktop version of Beat Saber. If you bought it on the standalone store, follow <a className="underline cursor-pointer" href="https://github.com/Zagrios/bs-manager/wiki/how-to-claim-oculus-desktop-version" target="_blank">this guide</a> to claim it.</p>
<div className="w-full flex flex-row justify-start items-center gap-1.5">
<BsmCheckbox className="relative z-[1] w-6 aspect-square" checked={stay} onChange={enable => setStay(() => enable)}/>
@@ -51,7 +51,9 @@ export class OculusDownloaderService extends AbstractBsDownloaderService impleme
const notificationData: Notification = {title: "notifications.types.error", desc: `notifications.bs-download.oculus-download.errors.msg.${err.code}`, duration: 9000};
if(err.code === OculusDownloaderErrorCodes.DOWNLOAD_MANIFEST_FAILED){
notificationData.actions = [{ id: "0", title: "Claim your desktop version" }]
return this.notifications.notifyError(notificationData).then(action => action === "0" && this.linkOpener.open(""))
return this.notifications.notifyError(notificationData).then(action => (
action === "0" && this.linkOpener.open("https://github.com/Zagrios/bs-manager/wiki/how-to-claim-oculus-desktop-version")
));
}
return this.notifications.notifyError({title: "notifications.types.error", desc: `notifications.bs-download.oculus-download.errors.msg.${err.code}`}).then(noop);