Skip to content
Snippets Groups Projects
Commit e0d9fc2e authored by Florent Poittevin's avatar Florent Poittevin
Browse files

WIP

parent 53b61340
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,9 @@ export class SharedBreadcrumbPresentational extends SharedAbstractPresentational
buildBreadCrumb(route: ActivatedRoute,
url: string = "",
breadcrumbs: Breadcrumb[] = []): Breadcrumb[] {
console.error(route);
const label = this.getLabel(route);
const id = this.getParamId(route);
if (!isUndefined(label)) {
const path = this.getPath(route);
......@@ -96,6 +98,14 @@ export class SharedBreadcrumbPresentational extends SharedAbstractPresentational
return this._BREADCRUMB_TRANSLATE_HOME;
}
private getParamId(route: ActivatedRoute): string {
if (route.snapshot.paramMap.keys.length > 0 && route.snapshot.paramMap.has("id")) {
const id = route.snapshot.paramMap.get("id");
console.error("FIND PARAM ID", id);
return id;
}
}
private getPath(route: ActivatedRoute): string {
if (route.routeConfig) {
let path = route.routeConfig.path;
......
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