From 492d189c6ed41c0df3eb1e5316ed36c375e19750 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 12 May 2020 14:41:26 -0400 Subject: [PATCH] DEV: Discourse.Route is deprecated --- .../javascripts/discourse/routes/admin-plugins-explorer.js.es6 | 3 ++- assets/javascripts/discourse/routes/group-reports-index.js.es6 | 3 ++- assets/javascripts/discourse/routes/group-reports-show.js.es6 | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6 b/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6 index fc8abd6..a22bd9f 100644 --- a/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6 +++ b/assets/javascripts/discourse/routes/admin-plugins-explorer.js.es6 @@ -1,6 +1,7 @@ import { ajax } from "discourse/lib/ajax"; +import DiscourseRoute from "discourse/routes/discourse"; -export default Discourse.Route.extend({ +export default DiscourseRoute.extend({ controllerName: "admin-plugins-explorer", model() { diff --git a/assets/javascripts/discourse/routes/group-reports-index.js.es6 b/assets/javascripts/discourse/routes/group-reports-index.js.es6 index 22737d5..9e1d535 100644 --- a/assets/javascripts/discourse/routes/group-reports-index.js.es6 +++ b/assets/javascripts/discourse/routes/group-reports-index.js.es6 @@ -1,6 +1,7 @@ import { ajax } from "discourse/lib/ajax"; +import DiscourseRoute from "discourse/routes/discourse"; -export default Discourse.Route.extend({ +export default DiscourseRoute.extend({ controllerName: "group-reports-index", model() { diff --git a/assets/javascripts/discourse/routes/group-reports-show.js.es6 b/assets/javascripts/discourse/routes/group-reports-show.js.es6 index 8f33906..158e289 100644 --- a/assets/javascripts/discourse/routes/group-reports-show.js.es6 +++ b/assets/javascripts/discourse/routes/group-reports-show.js.es6 @@ -1,6 +1,7 @@ import { ajax } from "discourse/lib/ajax"; +import DiscourseRoute from "discourse/routes/discourse"; -export default Discourse.Route.extend({ +export default DiscourseRoute.extend({ controllerName: "group-reports-show", model(params) {