mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
not allow to close dialog by clicking outside when user has modified something in dialog
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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">
|
<v-card class="pa-2 pa-sm-4 pa-md-4">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="d-flex align-center justify-center">
|
<div class="d-flex align-center justify-center">
|
||||||
@@ -99,10 +99,6 @@ interface BatchCreateDialogResponse {
|
|||||||
sourceTargetMap: Record<string, string>;
|
sourceTargetMap: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
defineProps<{
|
|
||||||
persistent?: boolean;
|
|
||||||
}>();
|
|
||||||
|
|
||||||
const { tt } = useI18n();
|
const { tt } = useI18n();
|
||||||
|
|
||||||
const transactionCategoriesStore = useTransactionCategoriesStore();
|
const transactionCategoriesStore = useTransactionCategoriesStore();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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">
|
<v-card class="pa-2 pa-sm-4 pa-md-4">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="d-flex align-center justify-center">
|
<div class="d-flex align-center justify-center">
|
||||||
@@ -227,10 +227,6 @@ interface BatchReplaceDialogResponse {
|
|||||||
targetItem?: string;
|
targetItem?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
defineProps<{
|
|
||||||
persistent?: boolean;
|
|
||||||
}>();
|
|
||||||
|
|
||||||
const { tt, getCategorizedAccountsWithDisplayBalance } = useI18n();
|
const { tt, getCategorizedAccountsWithDisplayBalance } = useI18n();
|
||||||
|
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
|
|||||||
Reference in New Issue
Block a user