Browse Source

fix(gui-v2): not render format json button in template edito

pull/2885/head
Wing-Kam Wong 2 years ago
parent
commit
cfc60e7423
  1. 6
      packages/nc-gui-v2/components/dlg/QuickImport.vue

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

@ -233,7 +233,11 @@ function getAdapter(name: string, val: any) {
<template #footer>
<a-button v-if="templateEditorModal" key="back" @click="templateEditorModal = false">Back</a-button>
<a-button v-else key="cancel" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button>
<a-button v-if="activeKey === 'jsonEditorTab'" key="format" :disabled="disableFormatJsonButton" @click="formatJson"
<a-button
v-if="activeKey === 'jsonEditorTab' && !templateEditorModal"
key="format"
:disabled="disableFormatJsonButton"
@click="formatJson"
>Format JSON</a-button
>
<a-button

Loading…
Cancel
Save