Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-09-20 07:41:11 +02:00
9 Zeilen
259 B
Text
9 Zeilen
259 B
Text
|
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));
|
||
|
}
|
||
|
});
|