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