mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 20:18:16 +00:00
c8cd38cdda
When moving ai-command-selector from gjs to js the underlying behavior changed, this corrects it and adds a test case.
19 lines
454 B
JavaScript
19 lines
454 B
JavaScript
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.commands;
|
|
}),
|
|
|
|
value: "",
|
|
|
|
selectKitOptions: {
|
|
filterable: true,
|
|
},
|
|
});
|