NetworkView: conditionally view pending changes
This commit is contained in:
parent
ab29b73d6b
commit
89f5745205
@ -45,6 +45,7 @@ Ext.define('Proxmox.node.NetworkView', {
|
||||
failure: function(response, opts) {
|
||||
changeitem.update(gettext('Error') + ': ' + response.htmlStatus);
|
||||
store.loadData({});
|
||||
changeitem.setHidden(true);
|
||||
},
|
||||
success: function(response, opts) {
|
||||
var result = Ext.decode(response.responseText);
|
||||
@ -52,8 +53,11 @@ Ext.define('Proxmox.node.NetworkView', {
|
||||
var changes = result.changes;
|
||||
if (changes === undefined || changes === '') {
|
||||
changes = gettext("No changes");
|
||||
changeitem.setHidden(true);
|
||||
} else {
|
||||
changeitem.update("<pre>" + Ext.htmlEncode(changes) + "</pre>");
|
||||
changeitem.setHidden(false);
|
||||
}
|
||||
changeitem.update("<pre>" + Ext.htmlEncode(changes) + "</pre>");
|
||||
}
|
||||
});
|
||||
};
|
||||
@ -326,6 +330,7 @@ Ext.define('Proxmox.node.NetworkView', {
|
||||
border: false,
|
||||
region: 'south',
|
||||
autoScroll: true,
|
||||
hidden: true,
|
||||
itemId: 'changes',
|
||||
tbar: [
|
||||
gettext('Pending changes') + ' (' +
|
||||
|
Loading…
Reference in New Issue
Block a user