mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 07:47:24 +08:00
16 lines
537 B
JavaScript
16 lines
537 B
JavaScript
import { alias, and } from "@ember/object/computed";
|
|
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
|
|
|
|
export default SelectKitHeaderComponent.extend({
|
|
layoutName: "select-kit/templates/components/combo-box/combo-box-header",
|
|
classNames: "combo-box-header",
|
|
|
|
clearable: alias("options.clearable"),
|
|
caretUpIcon: alias("options.caretUpIcon"),
|
|
caretDownIcon: alias("options.caretDownIcon"),
|
|
shouldDisplayClearableButton: and(
|
|
"clearable",
|
|
"computedContent.hasSelection"
|
|
)
|
|
});
|