This commit is contained in:
Joffrey JAFFEUX 2019-07-18 19:48:12 +02:00 committed by GitHub
parent f9c7d5a4bd
commit 9cdc059a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -22,15 +22,16 @@ export default Ember.Controller.extend({
segment !== "index" && segment !== "index" &&
segment !== "loading" && segment !== "loading" &&
segment !== "show" && segment !== "show" &&
segment !== "admin" segment !== "admin" &&
segment !== "dashboard"
); );
}) })
.map(Ember.String.dasherize) .map(Ember.String.dasherize)
.join(" "); .join(" ");
// this is done to avoid breaking css customizations // this is done to avoid breaking css customizations
if (cssClasses.includes("dashboard")) { if (currentPath.indexOf("admin.dashboard") > -1) {
cssClasses = `${cssClasses} dashboard-next`; cssClasses = `${cssClasses} dashboard dashboard-next`;
} }
return cssClasses; return cssClasses;