correct linting

This commit is contained in:
Sam 2016-04-14 16:30:04 +10:00
parent 4bc860652b
commit 6360c410fe
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@ import loadScript from 'discourse/lib/load-script';
export default Ember.Component.extend({
tagName: 'canvas',
refreshChart(){
const ctx = this.$()[0].getContext("2d");
const model = this.get("model");
@ -34,10 +33,10 @@ export default Ember.Component.extend({
},
};
this._chart = new Chart(ctx, config);
this._chart = new window.Chart(ctx, config);
},
didInsertElement(){
loadScript("/javascripts/Chart.min.js").then(() => this.refreshChart.apply(this));
}
})
});

View File

@ -11,7 +11,7 @@ export default Discourse.Route.extend({
model: function(params) {
const Report = require('admin/models/report').default;
return Report.find(params.type, params['start-date'], params['end-date'], params['category-id'], params['group-id'])
return Report.find(params.type, params['start-date'], params['end-date'], params['category-id'], params['group-id']);
},
setupController: function(controller, model) {