mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 05:23:49 +08:00
correct linting
This commit is contained in:
parent
4bc860652b
commit
6360c410fe
|
@ -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));
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user