Browse Source

fix(gui-v2): set maskClosable to false

pull/2885/head
Wing-Kam Wong 2 years ago
parent
commit
a3407dda72
  1. 2
      packages/nc-gui-v2/components/dlg/AirtableImport.vue
  2. 2
      packages/nc-gui-v2/components/dlg/QuickImport.vue
  3. 1
      packages/nc-gui-v2/components/dlg/TableCreate.vue
  4. 1
      packages/nc-gui-v2/components/dlg/TableRename.vue

2
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -210,7 +210,7 @@ onBeforeUnmount(() => {
</script>
<template>
<a-modal v-model:visible="dialogShow" width="max(30vw, 600px)" @keydown.esc="dialogShow = false">
<a-modal v-model:visible="dialogShow" width="max(30vw, 600px)" :mask-closable="false" @keydown.esc="dialogShow = false">
<template #footer>
<div v-if="step === 1">
<a-button key="back" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button>

2
packages/nc-gui-v2/components/dlg/QuickImport.vue

@ -228,7 +228,7 @@ function getAdapter(name: string, val: any) {
</script>
<template>
<a-modal v-model:visible="dialogShow" width="max(60vw, 600px)" @keydown.esc="dialogShow = false">
<a-modal v-model:visible="dialogShow" width="max(60vw, 600px)" :mask-closable="false" @keydown.esc="dialogShow = false">
<a-typography-title class="ml-5 mt-5 mb-5" type="secondary" :level="5">{{ importMeta.header }}</a-typography-title>
<template #footer>
<a-button v-if="templateEditorModal" key="back" @click="templateEditorModal = false">Back</a-button>

1
packages/nc-gui-v2/components/dlg/TableCreate.vue

@ -76,6 +76,7 @@ onMounted(() => {
<a-modal
v-model:visible="dialogShow"
width="max(30vw, 600px)"
:mask-closable="false"
@keydown.esc="dialogShow = false"
@keydown.enter="$emit('create', table)"
>

1
packages/nc-gui-v2/components/dlg/TableRename.vue

@ -95,6 +95,7 @@ const renameTable = async () => {
<a-modal
v-model:visible="dialogShow"
:title="$t('activity.renameTable')"
:mask-closable="false"
@keydown.esc="dialogShow = false"
@finish="renameTable"
>

Loading…
Cancel
Save