mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 05:20:23 +08:00
DEV: remove .property() deprecations (#7906)
More context at https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-property
This commit is contained in:

committed by
Robin Ward

parent
5e50a24d3a
commit
617c74bc79
@ -5,11 +5,11 @@ import Report from "admin/models/report";
|
||||
import PeriodComputationMixin from "admin/mixins/period-computation";
|
||||
|
||||
function staticReport(reportType) {
|
||||
return function() {
|
||||
return Ember.computed("reports.[]", function() {
|
||||
return Ember.makeArray(this.reports).find(
|
||||
report => report.type === reportType
|
||||
);
|
||||
}.property("reports.[]");
|
||||
});
|
||||
}
|
||||
|
||||
export default Ember.Controller.extend(PeriodComputationMixin, {
|
||||
|
Reference in New Issue
Block a user