fix: grid view issues

- maintain column order after column rename
- show column menu in main view and hide from grid view
- keep column order from main view for newly created grid view

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2021-10-31 13:26:30 +05:30
parent 1788ca5670
commit 1e1d21a03c
7 changed files with 36 additions and 17 deletions

View File

@@ -37,6 +37,7 @@
:sql-ui="sqlUi"
:is-public-view="isPublicView"
:is-locked="isLocked"
:is-virtual="isVirtual"
@saved="onNewColCreation"
/>
@@ -464,10 +465,10 @@ export default {
this.selected.col = null
this.selected.row = null
},
onNewColCreation(col) {
onNewColCreation(col, oldCol) {
this.addNewColMenu = false
this.addNewColModal = false
this.$emit('onNewColCreation', col)
this.$emit('onNewColCreation', col, oldCol)
},
expandRow(...args) {
this.$emit('expandRow', ...args)