fix: user avatar settings

This commit is contained in:
kolaente 2022-07-19 17:00:40 +02:00
parent c2d5370e4a
commit 62bbffb17e
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ export default defineComponent({
</script>
<script setup lang="ts">
import {ref, shallowReactive} from 'vue'
import {computed, ref, shallowReactive} from 'vue'
import {useI18n} from 'vue-i18n'
import {useStore} from 'vuex'
import {Cropper} from 'vue-advanced-cropper'
@ -80,13 +80,13 @@ import { success } from '@/message'
const {t} = useI18n({useScope: 'global'})
const store = useStore()
const AVATAR_PROVIDERS = {
const AVATAR_PROVIDERS = computed(() => ({
default: t('misc.default'),
initials: t('user.settings.avatar.initials'),
gravatar: t('user.settings.avatar.gravatar'),
marble: t('user.settings.avatar.marble'),
upload: t('user.settings.avatar.upload'),
}
}))
useTitle(() => `${t('user.settings.avatar.title')} - ${t('user.settings.title')}`)