diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 2b973ae55..5a3f40a6d 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -748,6 +748,7 @@ gallery: "ギャラリー"
recentPosts: "最近の投稿"
popularPosts: "人気の投稿"
shareWithNote: "ノートで共有"
+emailNotConfiguredWarning: "メールアドレスの設定がされていません。"
_forgotPassword:
enterEmail: "アカウントに登録したメールアドレスを入力してください。そのアドレス宛てに、パスワードリセット用のリンクが送信されます。"
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue
index 049e91289..3fd10fc44 100644
--- a/src/client/pages/settings/index.vue
+++ b/src/client/pages/settings/index.vue
@@ -10,6 +10,7 @@
{{ $ts.accounts }}
+ {{ $ts.emailNotConfiguredWarning }} {{ $ts.configure }}
{{ $ts.basicSettings }}
{{ $ts.profile }}
@@ -58,10 +59,13 @@ import FormLink from '@client/components/form/link.vue';
import FormGroup from '@client/components/form/group.vue';
import FormBase from '@client/components/form/base.vue';
import FormButton from '@client/components/form/button.vue';
+import FormInfo from '@client/components/form/info.vue';
import { scroll } from '@client/scripts/scroll';
import { signout } from '@client/account';
import { unisonReload } from '@client/scripts/unison-reload';
import * as symbols from '@client/symbols';
+import { instance } from '@client/instance';
+import { $i } from '@client/account';
export default defineComponent({
components: {
@@ -69,6 +73,7 @@ export default defineComponent({
FormLink,
FormGroup,
FormButton,
+ FormInfo,
},
props: {
@@ -173,6 +178,8 @@ export default defineComponent({
}
});
+ const emailNotConfigured = computed(() => instance.enableEmail && ($i.email == null || !$i.emailVerified));
+
return {
[symbols.PAGE_INFO]: INFO,
page,
@@ -182,6 +189,7 @@ export default defineComponent({
onInfo,
pageProps,
component,
+ emailNotConfigured,
logout: () => {
signout();
},