feature/fix-vue-i18n-9.2.31 (#1994)
Co-authored-by: renovate <renovatebot@kolaente.de> Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1994 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:

committed by
konrad

parent
1569042471
commit
5ef939a230
@ -70,7 +70,7 @@ watch(() => props.configureOpen, (value) => {
|
||||
}, {immediate: true})
|
||||
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const errorMsg = ref('')
|
||||
const successMsg = ref('')
|
||||
|
@ -28,22 +28,21 @@
|
||||
{{ $t('misc.cancel') }}
|
||||
</x-button>
|
||||
<x-button
|
||||
v-if="primaryLabel !== ''"
|
||||
variant="primary"
|
||||
@click.prevent.stop="primary()"
|
||||
:icon="primaryIcon"
|
||||
:disabled="primaryDisabled"
|
||||
>
|
||||
{{ primaryLabel }}
|
||||
{{ primaryLabel || $t('misc.create') }}
|
||||
</x-button>
|
||||
</footer>
|
||||
</card>
|
||||
</modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
</script>
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
@ -51,10 +50,6 @@ defineProps({
|
||||
},
|
||||
primaryLabel: {
|
||||
type: String,
|
||||
default() {
|
||||
const {t} = useI18n()
|
||||
return t('misc.create')
|
||||
},
|
||||
},
|
||||
primaryIcon: {
|
||||
type: String,
|
||||
|
@ -38,7 +38,7 @@ import {useTitle} from '@/composables/useTitle'
|
||||
|
||||
const route = useRoute()
|
||||
const store = useStore()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const motd = computed(() => store.state.config.motd)
|
||||
|
||||
|
@ -51,7 +51,7 @@ const emit = defineEmits(['change'])
|
||||
|
||||
const subscriptionService = shallowRef(new SubscriptionService())
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const tooltipText = computed(() => {
|
||||
if (disabled.value) {
|
||||
return t('task.subscription.subscribedThroughParent', {
|
||||
|
Reference in New Issue
Block a user