fixed navigation form breadcrumbs
This commit is contained in:
parent
63c43fa422
commit
b5b8829f81
|
@ -41,7 +41,7 @@ export class NavigationBreadcrumbComponent extends BaseComponent {
|
||||||
.pipe(
|
.pipe(
|
||||||
map(() => {
|
map(() => {
|
||||||
const routeSnapshot = this.router.routerState.snapshot.root;
|
const routeSnapshot = this.router.routerState.snapshot.root;
|
||||||
const breadcrumbs = this._buildBreadCrumbs(routeSnapshot).filter(x => !!x.title);
|
const breadcrumbs = this._buildBreadCrumbs(routeSnapshot).filter(x => !!x.title && !x.hideItem);
|
||||||
return breadcrumbs;
|
return breadcrumbs;
|
||||||
}),
|
}),
|
||||||
takeUntil(this._destroyed),
|
takeUntil(this._destroyed),
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
import { FormattingModule } from '@app/core/formatting.module';
|
import { FormattingModule } from '@app/core/formatting.module';
|
||||||
import { NavigationBreadcrumbComponent } from '@app/ui/misc/breadcrumb/navigation-breadcrumb.component';
|
import { NavigationBreadcrumbComponent } from '@app/ui/misc/breadcrumb/navigation-breadcrumb.component';
|
||||||
import { SecureImagePipe } from '@common/http/image/secure-image.pipe';
|
import { SecureImagePipe } from '@common/http/image/secure-image.pipe';
|
||||||
|
@ -11,7 +12,8 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
TranslateModule,
|
||||||
FormattingModule
|
FormattingModule,
|
||||||
|
RouterModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
SecureImagePipe,
|
SecureImagePipe,
|
||||||
|
|
Loading…
Reference in New Issue