[pbs-devel] [PATCH proxmox-backup 7/9] ui: MainView: use new beforeChangePath signature
Dominik Csapak
d.csapak at proxmox.com
Wed May 26 11:12:04 CEST 2021
subpath can be optional in extjs 7.0, so handle that
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/MainView.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/www/MainView.js b/www/MainView.js
index cd63f4c7..ef52f094 100644
--- a/www/MainView.js
+++ b/www/MainView.js
@@ -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}`)) {
--
2.20.1
More information about the pbs-devel
mailing list