From 9cdc059a990c113608d5eaf22e8bfa07a5e31a2a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 18 Jul 2019 19:48:12 +0200 Subject: [PATCH] fix tests (#7908) --- app/assets/javascripts/admin/controllers/admin.js.es6 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/admin/controllers/admin.js.es6 b/app/assets/javascripts/admin/controllers/admin.js.es6 index ace435d655a..2bca3824392 100644 --- a/app/assets/javascripts/admin/controllers/admin.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin.js.es6 @@ -22,15 +22,16 @@ export default Ember.Controller.extend({ segment !== "index" && segment !== "loading" && segment !== "show" && - segment !== "admin" + segment !== "admin" && + segment !== "dashboard" ); }) .map(Ember.String.dasherize) .join(" "); // this is done to avoid breaking css customizations - if (cssClasses.includes("dashboard")) { - cssClasses = `${cssClasses} dashboard-next`; + if (currentPath.indexOf("admin.dashboard") > -1) { + cssClasses = `${cssClasses} dashboard dashboard-next`; } return cssClasses;