Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 865f97c6 authored by Sebastian-Ion TINCU's avatar Sebastian-Ion TINCU
Browse files

EDELIVERY-11590 SMP UI Improvements Breadcrumb

Fix disabling the breadcrumbs when it contains 4 items.
Fix displaying the disabled items in the breadcrumbs when using themes other than the default one.
parent 23cd5bbb
No related branches found
No related tags found
No related merge requests found
Pipeline #204793 failed
......@@ -8,6 +8,10 @@
padding: 0 .4em;
}
.smp-breadcrumb-item.smp-disabled * {
background-color: gray !important;
}
.smp-breadcrumb-content {
z-index: 1;
// user parent
......
......@@ -146,7 +146,8 @@ export class NavigationService extends MatTreeNestedDataSource<NavigationNode> {
// mark the parent of the first leaf in a menu as non-clickable
let parent = this.findParent(selectedPath[leafIndex]);
if (parent && parent.children && parent.children[0] == selectedPath[leafIndex]) {
let grandParent = this.findParent(parent);
if (parent && parent.children && parent.children[0] == selectedPath[leafIndex] && grandParent == this.rootNode) {
parent.clickable = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment