diff --git a/www/DataStorePanel.js b/www/DataStorePanel.js index 059fd3b2..0da94361 100644 --- a/www/DataStorePanel.js +++ b/www/DataStorePanel.js @@ -10,6 +10,25 @@ Ext.define('PBS.DataStorePanel', { }; }, + stateId: 'pbs-datastore-panel', + stateful: true, + + stateEvents: ['tabchange'], + + applyState: function(state) { + let me = this; + if (state.tab !== undefined) { + me.setActiveTab(state.tab); + } + }, + + getState: function() { + let me = this; + return { + tab: me.getActiveTab().getItemId(), + }; + }, + border: false, defaults: { border: false,