mirror of
https://github.com/discourse/discourse.git
synced 2025-02-14 08:52:45 +08:00
15 lines
314 B
JavaScript
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);
|
|
}
|
|
}
|
|
});
|