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/components/strains/strain-details.js
2015-06-01 09:40:17 -08:00

15 lines
366 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['grid-1'],
isEditing: false,
actions: {
editStrain: function() {
this.get('strain').get('errors').clear();
this.toggleProperty('isEditing');
},
saveStrain: function() {
this.get('strain').save().then(this.toggleProperty('isEditing'));
}
}
});