This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/top-period-buttons.js.es6

15 lines
314 B
JavaScript

export default Ember.Component.extend({
classNames: ['top-title-buttons'],
periods: function() {
const period = this.get('period');
return this.site.get('periods').filter(p => p !== period);
}.property('period'),
actions: {
changePeriod(p) {
this.sendAction('action', p);
}
}
});