Skip to content

Commit

Permalink
active tab refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Feb 3, 2021
1 parent c4c1416 commit 0357a61
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions public/admin/js/Space/toolbar/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ Ext.define('Admin.Space.toolbar.Collection', {
},

refreshStore() {
if (!this.up('grid').isVisible()) {
// grid is not active
return;
}
if (!this.up('grid').up('tabpanel').isVisible()) {
// space tab is not active
return;
}
if (!this.up('grid').up('tabpanel').up('tabpanel').isVisible()) {
// database tab is not active
return;
}
this.down('[name=refresh]').blur();
return this.up('grid').store.load();
},
Expand Down

0 comments on commit 0357a61

Please sign in to comment.