but allow an empty nodename to be set. This is in preparation for
allowing a cluster view as well, where an empty node name will
indicate that no node is selected.
Since the reloadStorageList function still returns early if there is
no nodename, this should not lead to any issues.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
setNodename: function(nodename) {
var me = this;
- if (!nodename || me.nodename === nodename) {
+ nodename = nodename || '';
+
+ if (me.nodename === nodename) {
return;
}
me.callParent();
- if (nodename) {
- me.setNodename(nodename);
- }
+ me.setNodename(nodename);
},
}, function() {
Ext.define('pve-storage-status', {