FIX: since stuff is unbound in the list we must issue a refresh on all bulk actions

Otherwise when you recategorize stuff will look as though its in the wrong category
This commit is contained in:
Sam 2015-08-27 11:43:32 +10:00
parent 8fbc8dbae0
commit e8d0aa9777

View File

@ -60,6 +60,8 @@ export default Ember.ArrayController.extend(ModalFunctionality, {
this.perform(operation).then(function (topics) {
if (topics) {
topics.forEach(cb);
const refreshTarget = self.get('refreshTarget');
if (refreshTarget) { refreshTarget.send('refresh'); }
self.send('closeModal');
}
});