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:
Dominik Csapak 2017-04-05 09:25:50 +02:00 committed by Dietmar Maurer
parent 3c93b430cd
commit 1a68e95dec
3 changed files with 9 additions and 6 deletions

View File

@ -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();
}
});

View File

@ -345,11 +345,9 @@ Ext.define('Proxmox.node.NetworkView', {
html: gettext("No changes")
}
],
listeners: {
activate: reload
}
});
me.callParent();
reload();
}
});

View File

@ -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();
}
});