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>
me.callParent();
- me.on('activate', me.rstore.startUpdate);
me.on('destroy', me.rstore.stopUpdate);
+ me.rstore.startUpdate();
}
});
html: gettext("No changes")
}
],
- listeners: {
- activate: reload
- }
});
me.callParent();
+ reload();
}
});
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();
}
});