0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-12 21:22:54 +01:00
discourse-custom-wizard/assets/javascripts/wizard/components/wizard-field-category.js.es6
2019-07-26 18:59:41 +10:00

9 Zeilen
Kein EOL
259 B
JavaScript

import { observes } from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
@observes('categories')
setValue() {
const categories = this.get('categories');
this.set('field.value', categories.map(c => c.id));
}
});