diff --git a/locales/index.d.ts b/locales/index.d.ts index 6e3edefabb..e4bf6628cc 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1060,6 +1060,7 @@ export interface Locale { "rolesThatCanBeUsedThisEmojiAsReactionPublicRoleWarn": string; "cancelReactionConfirm": string; "changeReactionConfirm": string; + "goToMisskey": string; "_initialAccountSetting": { "accountCreated": string; "letsStartAccountSetup": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 374eeba390..4f400ab60a 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1057,6 +1057,7 @@ rolesThatCanBeUsedThisEmojiAsReactionEmptyDescription: "ロールの指定が一 rolesThatCanBeUsedThisEmojiAsReactionPublicRoleWarn: "ロールは公開ロールである必要があります。" cancelReactionConfirm: "リアクションを取り消しますか?" changeReactionConfirm: "リアクションを変更しますか?" +goToMisskey: "Misskeyへ" _initialAccountSetting: accountCreated: "アカウントの作成が完了しました!" diff --git a/packages/frontend/src/pages/share.vue b/packages/frontend/src/pages/share.vue index 5c10198f7a..e0ac899230 100644 --- a/packages/frontend/src/pages/share.vue +++ b/packages/frontend/src/pages/share.vue @@ -16,7 +16,10 @@ class="_panel" @posted="state = 'posted'" /> - {{ i18n.ts.close }} +
+ {{ i18n.ts.close }} + {{ i18n.ts.goToMisskey }} +
@@ -148,10 +151,14 @@ function close(): void { // 閉じなければ100ms後タイムラインに window.setTimeout(() => { - mainRouter.push('/'); + location.href = '/'; }, 100); } +function goToMisskey(): void { + location.href = '/'; +} + const headerActions = $computed(() => []); const headerTabs = $computed(() => []); @@ -161,9 +168,3 @@ definePageMetadata({ icon: 'ti ti-share', }); - -