Merge pull request #4630 from ErisDS/labs-bugfixes

Labs page bug fixes
This commit is contained in:
Sebastian Gierlinger 2014-12-11 21:31:06 +01:00
commit d5d3db8eb4
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);