fix: handle table new creation bug

re #795

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2021-11-22 11:29:46 +05:30
parent 5f66ec5d0b
commit ce612348a9
2 changed files with 7 additions and 3 deletions

View File

@@ -1310,8 +1310,8 @@ export default {
});
this.dialogRenameTable.dialogShow = false;
this.dialogRenameTable.defaultValue = null;
this.$toast.success('Table renamed succesfully').goAway(3000);
console.log(tn, cookie);
this.$toast.success('Table renamed successfully').goAway(3000);
console.log(_tn, cookie);
},
mtdDialogRenameTableCancel() {
console.log('mtdDialogGetTableNameCancel cancelled');
@@ -1319,7 +1319,7 @@ export default {
this.dialogRenameTable.defaultValue = null;
},
mtdTableCreate(table) {
if (!this.menuItem) {
if (!this.menuItem || this.menuItem.type !== 'tableDir') {
this.menuItem = this.listViewArr.find(n => n.type === 'tableDir');
}
// const tables = table.name.split(',');