]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: automatically add 'localhost' as nodename for all panels
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 25 Jun 2020 08:45:48 +0000 (10:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 26 Jun 2020 07:11:36 +0000 (09:11 +0200)
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>
www/MainView.js

index 0ce7e451f577028ad0e7d76355c0e8207c5b3054..4d9133bf93a586a91aba32b21bad753e16372f14 100644 (file)
@@ -72,10 +72,15 @@ Ext.define('PBS.MainView', {
                let datastore = PBS.Utils.getDataStoreFromPath(path);
                obj = contentpanel.add({
                    xtype: 'pbsDataStorePanel',
+                   nodename: 'localhost',
                    datastore,
                });
            } else {
-               obj = contentpanel.add({ xtype: path, border: false });
+               obj = contentpanel.add({
+                   xtype: path,
+                   nodename: 'localhost',
+                   border: false
+               });
            }
 
            var treelist = me.lookupReference('navtree');