ui: MainView: use new beforeChangePath signature
subpath can be optional in extjs 7.0, so handle that Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
dbf5dad1c4
commit
90066d22a0
|
@ -34,9 +34,15 @@ Ext.define('PBS.MainView', {
|
|||
return [xtype, config];
|
||||
},
|
||||
|
||||
beforeChangePath: function(path, subpath, action) {
|
||||
beforeChangePath: function(path, subpathOrAction, action) {
|
||||
var me = this;
|
||||
|
||||
let subpath = subpathOrAction;
|
||||
if (!action) {
|
||||
action = subpathOrAction;
|
||||
subpath = undefined;
|
||||
}
|
||||
|
||||
let [xtype, config] = me.parseRouterPath(path);
|
||||
|
||||
if (!Ext.ClassManager.getByAlias(`widget.${xtype}`)) {
|
||||
|
|
Loading…
Reference in New Issue