mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:18:33 +08:00
17 lines
526 B
Plaintext
17 lines
526 B
Plaintext
|
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",
|
||
|
content: Ember.computed.alias("site.periods"),
|
||
|
value: Ember.computed.alias("period"),
|
||
|
isHidden: Ember.computed.alias("showPeriods"),
|
||
|
|
||
|
actions: {
|
||
|
onSelect() {
|
||
|
this.sendAction("action", this.get("computedValue"));
|
||
|
}
|
||
|
}
|
||
|
});
|