diff --git a/src/components/desktop/TwoColumnSelect.vue b/src/components/desktop/TwoColumnSelect.vue index 5073a989..30410cc6 100644 --- a/src/components/desktop/TwoColumnSelect.vue +++ b/src/components/desktop/TwoColumnSelect.vue @@ -129,6 +129,7 @@ const props = defineProps<{ items: unknown[]; noItemText?: string; }>(); + const emit = defineEmits<{ (e: 'update:modelValue', value: unknown): void; }>(); diff --git a/src/components/mobile/ListItemSelectionSheet.vue b/src/components/mobile/ListItemSelectionSheet.vue index 0701667f..488b4ec7 100644 --- a/src/components/mobile/ListItemSelectionSheet.vue +++ b/src/components/mobile/ListItemSelectionSheet.vue @@ -52,6 +52,7 @@ const props = defineProps<{ items: unknown[]; show: boolean; }>(); + const emit = defineEmits<{ (e: 'update:modelValue', value: unknown): void; (e: 'update:show', value: boolean): void; diff --git a/src/components/mobile/TransactionTagSelectionSheet.vue b/src/components/mobile/TransactionTagSelectionSheet.vue index 11168363..c9b06759 100644 --- a/src/components/mobile/TransactionTagSelectionSheet.vue +++ b/src/components/mobile/TransactionTagSelectionSheet.vue @@ -92,6 +92,7 @@ const props = defineProps<{ allowAddNewTag?: boolean; show: boolean; }>(); + const emit = defineEmits<{ (e: 'update:modelValue', value: string[]): void; (e: 'update:show', value: boolean): void; diff --git a/src/components/mobile/TwoColumnListItemSelectionSheet.vue b/src/components/mobile/TwoColumnListItemSelectionSheet.vue index 17e1ed76..fd08db06 100644 --- a/src/components/mobile/TwoColumnListItemSelectionSheet.vue +++ b/src/components/mobile/TwoColumnListItemSelectionSheet.vue @@ -102,6 +102,7 @@ const props = defineProps<{ items: unknown[]; show: boolean; }>(); + const emit = defineEmits<{ (e: 'update:modelValue', value: unknown): void; (e: 'update:show', value: boolean): void; diff --git a/src/views/desktop/categories/list/dialogs/PresetDialog.vue b/src/views/desktop/categories/list/dialogs/PresetDialog.vue index a9f6d04b..cb223198 100644 --- a/src/views/desktop/categories/list/dialogs/PresetDialog.vue +++ b/src/views/desktop/categories/list/dialogs/PresetDialog.vue @@ -88,15 +88,15 @@ const props = defineProps<{ show: boolean; }>(); -const { tt, getCurrentLanguageTag, getAllLanguageOptions, getAllTransactionDefaultCategories, getLanguageInfo } = useI18n(); - -const transactionCategoriesStore = useTransactionCategoriesStore(); - const emit = defineEmits<{ (e: 'update:show', value: boolean): void; (e: 'category:saved', event: { message: string }): void; }>(); +const { tt, getCurrentLanguageTag, getAllLanguageOptions, getAllTransactionDefaultCategories, getLanguageInfo } = useI18n(); + +const transactionCategoriesStore = useTransactionCategoriesStore(); + const snackbar = useTemplateRef('snackbar'); const currentLocale = ref(getCurrentLanguageTag()); diff --git a/src/views/desktop/overview/cards/MonthlyIncomeAndExpenseCard.vue b/src/views/desktop/overview/cards/MonthlyIncomeAndExpenseCard.vue index c2de60b2..8bfb47a5 100644 --- a/src/views/desktop/overview/cards/MonthlyIncomeAndExpenseCard.vue +++ b/src/views/desktop/overview/cards/MonthlyIncomeAndExpenseCard.vue @@ -54,6 +54,7 @@ const props = defineProps<{ isDarkMode?: boolean; enableClickItem?: boolean; }>(); + const emit = defineEmits<{ (e: 'click', event: MonthlyIncomeAndExpenseCardClickEvent): void; }>();