mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 09:28:03 +08:00
DEV: reduces memory footprint of tests - step 1 (#7591)
This commit is contained in:
@ -3,10 +3,13 @@ import computed from "ember-addons/ember-computed-decorators";
|
||||
|
||||
export default Ember.Mixin.create({
|
||||
queryParams: ["period"],
|
||||
|
||||
period: "monthly",
|
||||
|
||||
availablePeriods: ["yearly", "quarterly", "monthly", "weekly"],
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.availablePeriods = ["yearly", "quarterly", "monthly", "weekly"];
|
||||
},
|
||||
|
||||
@computed("period")
|
||||
startDate(period) {
|
||||
|
Reference in New Issue
Block a user