18 lines
373 B
JavaScript
18 lines
373 B
JavaScript
import discourseComputed from "discourse-common/utils/decorators";
|
|
import Component from "@ember/component";
|
|
|
|
export default Component.extend({
|
|
classNames: ["top-title-buttons"],
|
|
|
|
@discourseComputed("period")
|
|
periods(period) {
|
|
return this.site.get("periods").filter(p => p !== period);
|
|
},
|
|
|
|
actions: {
|
|
changePeriod(p) {
|
|
this.action(p);
|
|
}
|
|
}
|
|
});
|