From 4a2f7e1eccdbd5c77f13a20e087805d8f0132382 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Mon, 25 Nov 2019 11:49:31 +0300 Subject: [PATCH 1/4] fix(theme-shared): bread crumb type error --- .../components/breadcrumb/breadcrumb.component.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/breadcrumb/breadcrumb.component.ts b/npm/ng-packs/packages/theme-shared/src/lib/components/breadcrumb/breadcrumb.component.ts index 7e6beb162a..ae7a589617 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/components/breadcrumb/breadcrumb.component.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/components/breadcrumb/breadcrumb.component.ts @@ -17,15 +17,17 @@ export class BreadcrumbComponent implements OnInit { ngOnInit(): void { this.show = !!this.store.selectSnapshot(state => state.LeptonLayoutState); if (this.show) { - const splittedUrl = this.router.url.split('/').filter(chunk => chunk); + let splittedUrl = this.router.url.split('/').filter(chunk => chunk); - const currentUrl: ABP.FullRoute = - this.store.selectSnapshot(ConfigState.getRoute(splittedUrl[0])) || - this.store.selectSnapshot(ConfigState.getRoute(null, null, this.router.url)); + let currentUrl: ABP.FullRoute = this.store.selectSnapshot(ConfigState.getRoute(splittedUrl[0])); if (!currentUrl) { - this.show = false; - return; + currentUrl = this.store.selectSnapshot(ConfigState.getRoute(null, null, this.router.url)); + splittedUrl = [this.router.url]; + if (!currentUrl) { + this.show = false; + return; + } } this.segments.push(currentUrl.name); From 383c4f6a29d2412e9225283b0c2f8d0e8db50936 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Mon, 25 Nov 2019 11:50:05 +0300 Subject: [PATCH 2/4] fix(theme-shared): modal animation and backdrop height --- .../lib/components/modal/modal.component.html | 58 ++++++++++--------- .../lib/components/modal/modal.component.ts | 4 +- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.html b/npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.html index 9b712d7199..c3168bad92 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.html +++ b/npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.html @@ -1,30 +1,34 @@ - -