Ext.define('Chs.Application', {
extend: 'Ext.app.Application',
name: 'Chs',
stores: [
// TODO: add global / shared stores here
],
views: [
'Chs.view.login.Login'
],
launch: function () {
alert();
Ext.create({
xtype: 'login'
});
},
onAppUpdate: function () {
Ext.Msg.confirm('Application Update', 'This application has an update, reload?',
function (choice) {
if (choice === 'yes') {
window.location.reload();
}
}
);
}
});