fix tests (#7908)
This commit is contained in:
parent
f9c7d5a4bd
commit
9cdc059a99
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue