ember-cli-admin
Version:
Powerful admin dashboard for ember-cli projects, more in http://ember-admin.com
19 lines (17 loc) • 427 B
JavaScript
import Ember from 'ember';
export default Ember.Mixin.create({
__batches: Ember.A(),
batchActions: Ember.A([{
title: "delete",
confirm: "Are you sure you want to delete this?",
action: "destroy"
}]),
actions: {
baseBatchAction(action) {
this.get('__batches').forEach(model => {
return this.send(action, model, true);
});
return this.set('__batches', Ember.A());
}
}
});