diff options
Diffstat (limited to 'src/client/pages/settings/email.vue')
| -rw-r--r-- | src/client/pages/settings/email.vue | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/client/pages/settings/email.vue b/src/client/pages/settings/email.vue new file mode 100644 index 0000000000..f72ee29a97 --- /dev/null +++ b/src/client/pages/settings/email.vue @@ -0,0 +1,52 @@ +<template> +<FormBase> + <FormGroup> + <template #label>{{ $t('emailAddress') }}</template> + <FormLink to="/settings/email/address"> + <template v-if="$store.state.i.email && !$store.state.i.emailVerified" #icon><Fa :icon="faExclamationTriangle" style="color: var(--warn);"/></template> + <template v-else-if="$store.state.i.email && $store.state.i.emailVerified" #icon><Fa :icon="faCheck" style="color: var(--success);"/></template> + {{ $store.state.i.email || $t('notSet') }} + </FormLink> + </FormGroup> +</FormBase> +</template> + +<script lang="ts"> +import { defineComponent } from 'vue'; +import { faCog, faExclamationTriangle, faCheck } from '@fortawesome/free-solid-svg-icons'; +import { faBell, faEnvelope } from '@fortawesome/free-regular-svg-icons'; +import FormButton from '@/components/form/button.vue'; +import FormLink from '@/components/form/link.vue'; +import FormBase from '@/components/form/base.vue'; +import FormGroup from '@/components/form/group.vue'; +import * as os from '@/os'; + +export default defineComponent({ + components: { + FormBase, + FormLink, + FormButton, + FormGroup, + }, + + emits: ['info'], + + data() { + return { + INFO: { + title: this.$t('email'), + icon: faEnvelope + }, + faCog, faExclamationTriangle, faCheck + } + }, + + mounted() { + this.$emit('info', this.INFO); + }, + + methods: { + + } +}); +</script> |