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/species/species-form/component.js

27 lines
548 B
JavaScript

import Ember from 'ember';
const { Component, inject: { service } } = Ember;
export default Component.extend({
currentUser: service('session-account'),
species: null,
"on-save": null,
"on-cancel": null,
setupMetaDataOnInit: Ember.on('init', function() {
this.get('currentUser.account').then((user) => {
this.set('metaData', user.get('metaData'));
});
}),
actions: {
save: function() {
return this.attrs['on-save']();
},
cancel: function() {
return this.attrs['on-cancel']();
},
}
});