Browse Source

fix(nc-gui): Fixed close confirmation of expanded modal

pull/6600/head
Muhammed Mustafa 1 year ago
parent
commit
7911192f47
  1. 15
      packages/nc-gui/components/smartsheet/expanded-form/index.vue
  2. 1
      packages/nc-gui/lang/en.json

15
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -748,15 +748,18 @@ export default {
<!-- Prevent unsaved change modal --> <!-- Prevent unsaved change modal -->
<NcModal v-model:visible="preventModalStatus" size="small"> <NcModal v-model:visible="preventModalStatus" size="small">
<template #header> <div class="">
<div class="flex flex-row items-center gap-x-2">Do you want to save the changes ?</div> <div class="flex flex-row items-center gap-x-2 text-base font-bold">
</template> {{ $t('tooltip.saveChanges') }}
<div class="mt-2"> </div>
<div class="flex flex-row justify-end gap-x-2 mt-6"> <div class="flex font-medium mt-2">
{{ $t('activity.doYouWantToSaveTheChanges') }}
</div>
<div class="flex flex-row justify-end gap-x-2 mt-5">
<NcButton type="secondary" @click="discardPreventModal">{{ $t('labels.discard') }}</NcButton> <NcButton type="secondary" @click="discardPreventModal">{{ $t('labels.discard') }}</NcButton>
<NcButton key="submit" type="primary" label="Rename Table" loading-label="Renaming Table" @click="saveChanges"> <NcButton key="submit" type="primary" label="Rename Table" loading-label="Renaming Table" @click="saveChanges">
{{ $t('general.save') }} {{ $t('tooltip.saveChanges') }}
</NcButton> </NcButton>
</div> </div>
</div> </div>

1
packages/nc-gui/lang/en.json

@ -606,6 +606,7 @@
"newSource": "New Data Source", "newSource": "New Data Source",
"newWebhook": "New Webhook", "newWebhook": "New Webhook",
"enablePublicAccess": "Enable Public Access", "enablePublicAccess": "Enable Public Access",
"doYouWantToSaveTheChanges": "Do you want to save the changes ?",
"editingAccess": "Editing access", "editingAccess": "Editing access",
"enabledPublicViewing": "Enable public viewing", "enabledPublicViewing": "Enable public viewing",
"restrictAccessWithPassword": "Restrict access with password", "restrictAccessWithPassword": "Restrict access with password",

Loading…
Cancel
Save