mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 12:08:13 +00:00
19 lines
466 B
Plaintext
19 lines
466 B
Plaintext
|
import { computed, observer } from "@ember/object";
|
||
|
import MultiSelectComponent from "select-kit/components/multi-select";
|
||
|
|
||
|
export default MultiSelectComponent.extend({
|
||
|
_modelDisabledChanged: observer("attrs.disabled", function () {
|
||
|
this.selectKit.options.set("disabled", this.get("attrs.disabled.value"));
|
||
|
}),
|
||
|
|
||
|
content: computed(function () {
|
||
|
return this.attrs.commands.value;
|
||
|
}),
|
||
|
|
||
|
value: "",
|
||
|
|
||
|
selectKitOptions: {
|
||
|
filterable: true,
|
||
|
},
|
||
|
});
|