discourse/app/assets/javascripts/select-kit/components/period-chooser.js.es6

18 lines
554 B
Plaintext
Raw Normal View History

import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
export default DropdownSelectBoxComponent.extend({
classNames: ["period-chooser"],
rowComponent: "period-chooser/period-chooser-row",
headerComponent: "period-chooser/period-chooser-header",
collectionHeight: "auto",
content: Ember.computed.alias("site.periods"),
value: Ember.computed.alias("period"),
isHidden: Ember.computed.alias("showPeriods"),
actions: {
onSelect() {
this.sendAction("action", this.get("computedValue"));
}
}
});