-
{{ { key: '::Menu:Home', defaultValue: 'Home' } | abpLocalization }}
diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/http-error-wrapper/http-error-wrapper.component.ts b/npm/ng-packs/packages/theme-shared/src/lib/components/http-error-wrapper/http-error-wrapper.component.ts
index a102672ad6..0ada431f4f 100644
--- a/npm/ng-packs/packages/theme-shared/src/lib/components/http-error-wrapper/http-error-wrapper.component.ts
+++ b/npm/ng-packs/packages/theme-shared/src/lib/components/http-error-wrapper/http-error-wrapper.component.ts
@@ -42,6 +42,8 @@ export class HttpErrorWrapperComponent implements AfterViewInit, OnDestroy, OnIn
backgroundColor: string;
+ isHomeShow = true;
+
@ViewChild('container', { static: false })
containerRef: ElementRef
;
@@ -51,16 +53,21 @@ export class HttpErrorWrapperComponent implements AfterViewInit, OnDestroy, OnIn
ngOnInit() {
this.backgroundColor =
- snq(() => window.getComputedStyle(document.body).getPropertyValue('background-color')) || '#fff';
+ snq(() => window.getComputedStyle(document.body).getPropertyValue('background-color')) ||
+ '#fff';
}
ngAfterViewInit() {
if (this.customComponent) {
- const customComponentRef = this.cfRes.resolveComponentFactory(this.customComponent).create(this.injector);
+ const customComponentRef = this.cfRes
+ .resolveComponentFactory(this.customComponent)
+ .create(this.injector);
customComponentRef.instance.errorStatus = this.status;
customComponentRef.instance.destroy$ = this.destroy$;
this.appRef.attachView(customComponentRef.hostView);
- this.containerRef.nativeElement.appendChild((customComponentRef.hostView as EmbeddedViewRef).rootNodes[0]);
+ this.containerRef.nativeElement.appendChild(
+ (customComponentRef.hostView as EmbeddedViewRef).rootNodes[0],
+ );
customComponentRef.changeDetectorRef.detectChanges();
}
diff --git a/npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts b/npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts
index c84bf30470..93d3080cc0 100644
--- a/npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts
+++ b/npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts
@@ -138,6 +138,8 @@ export class ErrorHandler {
key: 'AbpAccount::DefaultErrorMessage',
defaultValue: DEFAULT_ERROR_MESSAGES.defaultError.title,
},
+ details: err.message,
+ isHomeShow: false,
});
}
break;