discourse/app/assets/javascripts/admin/routes/admin-dashboard-next.js.es6

10 lines
248 B
Plaintext
Raw Normal View History

import loadScript from "discourse/lib/load-script";
export default Discourse.Route.extend({
activate() {
loadScript("/javascripts/Chart.min.js").then(() => {
this.controllerFor('admin-dashboard-next').fetchDashboard();
});
}
});