Skip to content

Commit

Permalink
Reload current tab when deleting table
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxa committed Aug 21, 2021
1 parent d11fcb4 commit 9130142
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/db_screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,13 @@ class DbScreen {
var message = `Delete ${tableTitle} ${schema}.${tableName}?`;
if (await $u.confirm(message)) {
await table.remove();
if (this.currentTable == tableName && this.currentSchema == schema) {
this.currentTable = null;
this.currentSchema = null;
if (this.currentTab != 'query') {
this.activateTab(this.currentTab, 'force');
}
}
this.omit('table.deleted');
this.fetchTablesAndSchemas();
}
Expand Down

0 comments on commit 9130142

Please sign in to comment.