From 28eb91763f4fe62ff8be6e6e89cac3fe5353e8fd Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 11 Dec 2014 16:55:14 +0000 Subject: [PATCH] Labs page bug fixes - clear import errors on new attempt - clear posts and tags from store after delete all --- core/client/controllers/modals/delete-all.js | 2 ++ core/client/controllers/settings/labs.js | 1 + 2 files changed, 3 insertions(+) diff --git a/core/client/controllers/modals/delete-all.js b/core/client/controllers/modals/delete-all.js index e519fe0f24..ea6ba9563a 100644 --- a/core/client/controllers/modals/delete-all.js +++ b/core/client/controllers/modals/delete-all.js @@ -7,6 +7,8 @@ var DeleteAllController = Ember.Controller.extend({ type: 'DELETE' }).then(function () { self.notifications.showSuccess('All content deleted from database.'); + self.store.unloadAll('post'); + self.store.unloadAll('tag'); }).catch(function (response) { self.notifications.showErrors(response); }); diff --git a/core/client/controllers/settings/labs.js b/core/client/controllers/settings/labs.js index e586f23358..8287e3b754 100644 --- a/core/client/controllers/settings/labs.js +++ b/core/client/controllers/settings/labs.js @@ -8,6 +8,7 @@ var LabsController = Ember.Controller.extend(Ember.Evented, { formData = new FormData(); this.set('uploadButtonText', 'Importing'); + this.set('importErrors', ''); this.notifications.closePassive(); formData.append('importfile', file);