Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-28 03:40:29 +01:00
21 Zeilen
345 B
JavaScript
21 Zeilen
345 B
JavaScript
import Component from "@ember/component";
|
|
|
|
export default Component.extend({
|
|
topics: [],
|
|
|
|
didInsertElement() {
|
|
const value = this.field.value;
|
|
|
|
if (value) {
|
|
this.set("topics", value);
|
|
}
|
|
},
|
|
|
|
actions: {
|
|
setValue(_, topics) {
|
|
if (topics.length) {
|
|
this.set("field.value", topics);
|
|
}
|
|
},
|
|
},
|
|
});
|