2021-09-03 10:46:32 +02:00
|
|
|
import { computed } from "@ember/object";
|
|
|
|
import { reads } from "@ember/object/computed";
|
2024-11-22 17:11:51 +01:00
|
|
|
import SingleSelectHeaderComponent from "select-kit/components/select-kit/single-select-header";
|
2021-09-03 10:46:32 +02:00
|
|
|
|
|
|
|
export default SingleSelectHeaderComponent.extend({
|
2021-09-24 11:58:42 +02:00
|
|
|
classNames: ["combo-box-header", "wizard-subscription-selector-header"],
|
2021-09-03 10:46:32 +02:00
|
|
|
caretUpIcon: reads("selectKit.options.caretUpIcon"),
|
|
|
|
caretDownIcon: reads("selectKit.options.caretDownIcon"),
|
|
|
|
caretIcon: computed(
|
|
|
|
"selectKit.isExpanded",
|
|
|
|
"caretUpIcon",
|
|
|
|
"caretDownIcon",
|
|
|
|
function () {
|
|
|
|
return this.selectKit.isExpanded ? this.caretUpIcon : this.caretDownIcon;
|
|
|
|
}
|
|
|
|
),
|
|
|
|
});
|