Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 11:00:28 +01:00
Only save category ids
Dieser Commit ist enthalten in:
Ursprung
dfe8debda7
Commit
a1c8b53e64
2 geänderte Dateien mit 10 neuen und 1 gelöschten Zeilen
|
@ -0,0 +1,9 @@
|
||||||
|
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));
|
||||||
|
}
|
||||||
|
});
|
|
@ -1,2 +1,2 @@
|
||||||
{{category-selector categories=field.value maximum=field.limit}}
|
{{category-selector categories=categories maximum=field.limit}}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren