FIX: Restore was not redirecting to logs route.

This commit is contained in:
Guo Xiang Tan 2017-03-14 14:00:18 +08:00
parent 99943ec769
commit 324b346bb1
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export default Discourse.Route.extend({
if (confirmed) {
Discourse.User.currentProp("hideReadOnlyAlert", true);
backup.restore().then(function() {
self.controllerFor("adminBackupsLogs").clear();
self.controllerFor("adminBackupsLogs").get("logs").clear();
self.controllerFor("adminBackups").set("model.isOperationRunning", true);
self.transitionTo("admin.backups.logs");
});