ui: automatically add 'localhost' as nodename for all panels
this will make refactoring easier for panels that are reused from pve (where we always have a hostname) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
90779237ae
commit
573bcd9a92
@ -72,10 +72,15 @@ Ext.define('PBS.MainView', {
|
|||||||
let datastore = PBS.Utils.getDataStoreFromPath(path);
|
let datastore = PBS.Utils.getDataStoreFromPath(path);
|
||||||
obj = contentpanel.add({
|
obj = contentpanel.add({
|
||||||
xtype: 'pbsDataStorePanel',
|
xtype: 'pbsDataStorePanel',
|
||||||
|
nodename: 'localhost',
|
||||||
datastore,
|
datastore,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
obj = contentpanel.add({ xtype: path, border: false });
|
obj = contentpanel.add({
|
||||||
|
xtype: path,
|
||||||
|
nodename: 'localhost',
|
||||||
|
border: false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var treelist = me.lookupReference('navtree');
|
var treelist = me.lookupReference('navtree');
|
||||||
|
Loading…
Reference in New Issue
Block a user