mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 04:03:08 +02:00
メールアドレスの設定を促すように
This commit is contained in:
parent
e9170e630c
commit
71ebb068f7
2 changed files with 9 additions and 0 deletions
|
@ -748,6 +748,7 @@ gallery: "ギャラリー"
|
||||||
recentPosts: "最近の投稿"
|
recentPosts: "最近の投稿"
|
||||||
popularPosts: "人気の投稿"
|
popularPosts: "人気の投稿"
|
||||||
shareWithNote: "ノートで共有"
|
shareWithNote: "ノートで共有"
|
||||||
|
emailNotConfiguredWarning: "メールアドレスの設定がされていません。"
|
||||||
|
|
||||||
_forgotPassword:
|
_forgotPassword:
|
||||||
enterEmail: "アカウントに登録したメールアドレスを入力してください。そのアドレス宛てに、パスワードリセット用のリンクが送信されます。"
|
enterEmail: "アカウントに登録したメールアドレスを入力してください。そのアドレス宛てに、パスワードリセット用のリンクが送信されます。"
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
</div>
|
</div>
|
||||||
<FormLink :active="page === 'accounts'" replace to="/settings/accounts"><template #icon><i class="fas fa-users"></i></template>{{ $ts.accounts }}</FormLink>
|
<FormLink :active="page === 'accounts'" replace to="/settings/accounts"><template #icon><i class="fas fa-users"></i></template>{{ $ts.accounts }}</FormLink>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
<FormInfo v-if="emailNotConfigured" warn>{{ $ts.emailNotConfiguredWarning }} <MkA to="/settings/email" class="_link">{{ $ts.configure }}</MkA></FormInfo>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<template #label>{{ $ts.basicSettings }}</template>
|
<template #label>{{ $ts.basicSettings }}</template>
|
||||||
<FormLink :active="page === 'profile'" replace to="/settings/profile"><template #icon><i class="fas fa-user"></i></template>{{ $ts.profile }}</FormLink>
|
<FormLink :active="page === 'profile'" replace to="/settings/profile"><template #icon><i class="fas fa-user"></i></template>{{ $ts.profile }}</FormLink>
|
||||||
|
@ -58,10 +59,13 @@ import FormLink from '@client/components/form/link.vue';
|
||||||
import FormGroup from '@client/components/form/group.vue';
|
import FormGroup from '@client/components/form/group.vue';
|
||||||
import FormBase from '@client/components/form/base.vue';
|
import FormBase from '@client/components/form/base.vue';
|
||||||
import FormButton from '@client/components/form/button.vue';
|
import FormButton from '@client/components/form/button.vue';
|
||||||
|
import FormInfo from '@client/components/form/info.vue';
|
||||||
import { scroll } from '@client/scripts/scroll';
|
import { scroll } from '@client/scripts/scroll';
|
||||||
import { signout } from '@client/account';
|
import { signout } from '@client/account';
|
||||||
import { unisonReload } from '@client/scripts/unison-reload';
|
import { unisonReload } from '@client/scripts/unison-reload';
|
||||||
import * as symbols from '@client/symbols';
|
import * as symbols from '@client/symbols';
|
||||||
|
import { instance } from '@client/instance';
|
||||||
|
import { $i } from '@client/account';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
@ -69,6 +73,7 @@ export default defineComponent({
|
||||||
FormLink,
|
FormLink,
|
||||||
FormGroup,
|
FormGroup,
|
||||||
FormButton,
|
FormButton,
|
||||||
|
FormInfo,
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
@ -173,6 +178,8 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const emailNotConfigured = computed(() => instance.enableEmail && ($i.email == null || !$i.emailVerified));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
[symbols.PAGE_INFO]: INFO,
|
[symbols.PAGE_INFO]: INFO,
|
||||||
page,
|
page,
|
||||||
|
@ -182,6 +189,7 @@ export default defineComponent({
|
||||||
onInfo,
|
onInfo,
|
||||||
pageProps,
|
pageProps,
|
||||||
component,
|
component,
|
||||||
|
emailNotConfigured,
|
||||||
logout: () => {
|
logout: () => {
|
||||||
signout();
|
signout();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue