Browse Source

fix: missing view name edit icon

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/642/head
Pranav C 3 years ago
parent
commit
2a209f334b
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue

2
packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue

@ -694,7 +694,7 @@ export default {
this.clipboardSuccessHandler()
},
async updateViewName(view, index) {
if (view.title_temp === view.title || !view.edit) { return }
if (view.title_temp === view.title || !view.edit) { this.$set(view, 'edit', false); return }
if (this.viewsList.some((v, i) => i !== index && (v.alias || v.title) === view.title_temp)) {
this.$toast.info('View name should be unique').goAway(3000)
this.$set(view, 'edit', false)

Loading…
Cancel
Save