Updating manually now uses a command so it shows progress

This commit is contained in:
Mark McDowall 2013-10-18 17:48:14 -07:00
parent e7780af212
commit aa26d68f18
5 changed files with 24 additions and 15 deletions

View file

@ -2,8 +2,9 @@
define(
[
'marionette'
], function (Marionette) {
'marionette',
'Commands/CommandController'
], function (Marionette, CommandController) {
return Marionette.ItemView.extend({
template: 'System/Update/UpdateItemViewTemplate',
@ -12,7 +13,7 @@ define(
},
_installUpdate: function () {
this.model.save();
CommandController.Execute('installUpdate', { updatePackage: this.model.toJSON() });
}
});
});