import Controller from 'ember-controller';
import injectController from 'web-client/utilities/inject-controller';

export default Controller.extend({
  eventsController: injectController('dashboards.events'),

  actions: {
    deleteEvent(event) {
      event.destroyRecord();
    },

    editEvent(event) {
      this.set('eventsController.selectedEvent', event);
    }
  }
});
