DEV: remove .property() deprecations (#7906)

More context at https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-property
This commit is contained in:
Joffrey JAFFEUX
2019-07-18 19:28:23 +02:00
committed by Robin Ward
parent 5e50a24d3a
commit 617c74bc79
5 changed files with 12 additions and 16 deletions

View File

@ -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, {