Browse Source

fix(gui): assign click event handler to button

re #4760

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4762/head
Pranav C 2 years ago
parent
commit
27d05c65bb
  1. 4
      packages/nc-gui/components/cell/Json.vue

4
packages/nc-gui/components/cell/Json.vue

@ -134,8 +134,8 @@ useSelectedCellKeyupListener(active, (e) => {
<div v-if="!isForm || isExpanded" class="flex flex-row"> <div v-if="!isForm || isExpanded" class="flex flex-row">
<a-button type="text" size="small" :onclick="clear"><div class="text-xs">Cancel</div></a-button> <a-button type="text" size="small" :onclick="clear"><div class="text-xs">Cancel</div></a-button>
<a-button type="primary" size="small" :disabled="!!error || localValue === vModel"> <a-button type="primary" size="small" :disabled="!!error || localValue === vModel" @click="onSave">
<div class="text-xs" @click="onSave">Save</div> <div class="text-xs">Save</div>
</a-button> </a-button>
</div> </div>
</div> </div>

Loading…
Cancel
Save