ui: select tree item from history url on initial load

or fallback to dashboard

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-12-18 19:19:30 +01:00
parent 84b9eced26
commit 9710e5d00e

View File

@ -135,6 +135,11 @@ Ext.define('PBS.MainView', {
},
interval: 15*60*1000
});
// select treeitem and load page from url fragment, if set
let token = Ext.util.History.getToken() || 'pbsDashboard';
this.redirectTo(token, true);
}
},