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:
Dominik Csapak 2020-06-25 10:45:48 +02:00 committed by Dietmar Maurer
parent 90779237ae
commit 573bcd9a92

View File

@ -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');