mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
FIX: don't use 'modelFor'
This commit is contained in:
parent
b9b1f8c23f
commit
d598419742
@ -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");
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user