DEV: removes application.currentPath deprecation (#7905)

See https://deprecations.emberjs.com/v3.x#toc_application-controller-router-properties for more context
This commit is contained in:
Joffrey JAFFEUX
2019-07-18 19:29:37 +02:00
committed by Robin Ward
parent 617c74bc79
commit f9c7d5a4bd
17 changed files with 23 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
import computed from "ember-addons/ember-computed-decorators";
export default Ember.Controller.extend({
application: Ember.inject.controller(),
router: Ember.inject.service(),
@computed("siteSettings.enable_group_directory")
showGroups(enableGroupDirectory) {
@@ -13,7 +13,7 @@ export default Ember.Controller.extend({
return this.currentUser.get("admin") && enableBadges;
},
@computed("application.currentPath")
@computed("router.currentRouteName")
adminContentsClassName(currentPath) {
let cssClasses = currentPath
.split(".")