0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Labs page bug fixes

- clear import errors on new attempt
- clear posts and tags from store after delete all
This commit is contained in:
Hannah Wolfe 2014-12-11 16:55:14 +00:00
parent f531ef19f8
commit 28eb91763f
2 changed files with 3 additions and 0 deletions

View file

@ -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);
});

View file

@ -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);