not allow to close dialog by clicking outside when user has modified something in dialog

This commit is contained in:
MaysWind
2025-03-29 21:14:45 +08:00
parent 91b6047f2e
commit 6dfff84ab7
2 changed files with 2 additions and 10 deletions
@@ -1,5 +1,5 @@
<template>
<v-dialog width="600" :persistent="!!persistent" v-model="showState">
<v-dialog width="600" :persistent="!!submitting || !!selectedNames.length" v-model="showState">
<v-card class="pa-2 pa-sm-4 pa-md-4">
<template #title>
<div class="d-flex align-center justify-center">
@@ -99,10 +99,6 @@ interface BatchCreateDialogResponse {
sourceTargetMap: Record<string, string>;
}
defineProps<{
persistent?: boolean;
}>();
const { tt } = useI18n();
const transactionCategoriesStore = useTransactionCategoriesStore();
@@ -1,5 +1,5 @@
<template>
<v-dialog width="600" :persistent="!!persistent" v-model="showState">
<v-dialog width="600" :persistent="!!loading || (mode === 'replaceInvalidItems' && !!sourceItem) || !!targetItem" v-model="showState">
<v-card class="pa-2 pa-sm-4 pa-md-4">
<template #title>
<div class="d-flex align-center justify-center">
@@ -227,10 +227,6 @@ interface BatchReplaceDialogResponse {
targetItem?: string;
}
defineProps<{
persistent?: boolean;
}>();
const { tt, getCategorizedAccountsWithDisplayBalance } = useI18n();
const settingsStore = useSettingsStore();