mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-05 21:30:43 +00:00
change time of startupdate
because these components are not always children of a tabpanel or standalone, we cannot use activate here else we do not trigger the startupdate disadvantage: when used as a child of a tabpanel, it starts immediately instead of when clicking on the tab Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
3c93b430cd
commit
1a68e95dec
@ -39,7 +39,7 @@ Ext.define('Proxmox.node.DNSView', {
|
||||
|
||||
me.callParent();
|
||||
|
||||
me.on('activate', me.rstore.startUpdate);
|
||||
me.on('destroy', me.rstore.stopUpdate);
|
||||
me.rstore.startUpdate();
|
||||
}
|
||||
});
|
||||
|
@ -345,11 +345,9 @@ Ext.define('Proxmox.node.NetworkView', {
|
||||
html: gettext("No changes")
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
activate: reload
|
||||
}
|
||||
});
|
||||
|
||||
me.callParent();
|
||||
reload();
|
||||
}
|
||||
});
|
||||
|
@ -50,7 +50,12 @@ Ext.define('Proxmox.node.TimeView', {
|
||||
|
||||
me.callParent();
|
||||
|
||||
me.on('activate', me.rstore.startUpdate);
|
||||
me.on('destroy', me.rstore.stopUpdate);
|
||||
me.rstore.startUpdate();
|
||||
},
|
||||
|
||||
onDestroy: function() {
|
||||
var me = this;
|
||||
me.rstore.stopUpdate();
|
||||
me.callParent();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user