FIX: don't use 'modelFor'

This commit is contained in:
Régis Hanol 2015-08-14 12:40:18 +02:00
parent b9b1f8c23f
commit d598419742
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ export default Discourse.Route.extend({
},
backupStarted() {
this.modelFor("adminBackups").set("isOperationRunning", true);
this.controllerFor("adminBackups").set("isOperationRunning", true);
this.transitionTo("admin.backups.logs");
this.send("closeModal");
},
@ -82,7 +82,7 @@ export default Discourse.Route.extend({
Discourse.User.currentProp("hideReadOnlyAlert", true);
backup.restore().then(function() {
self.controllerFor("adminBackupsLogs").clear();
self.modelFor("adminBackups").set("model.isOperationRunning", true);
self.controllerFor("adminBackups").set("model.isOperationRunning", true);
self.transitionTo("admin.backups.logs");
});
}