This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/protected/strains/edit/controller.js
Matthew Dillon fbfbdf19d1 WIP
2015-11-10 15:42:20 -07:00

18 lines
508 B
JavaScript

import Ember from 'ember';
import SaveModel from '../../../../mixins/save-model';
const { Controller } = Ember;
export default Controller.extend(SaveModel, {
// Required for SaveModel mixin
fallbackRouteSave: 'protected.strains.show',
fallbackRouteCancel: 'protected.strains.show',
actions: {
addCharacteristic: function() {
return this.store.createRecord('measurement', {
characteristic: this.store.createRecord('characteristic', { sortOrder: -999 }),
});
},
},
});