mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
[DSC-287] Created new page error 500, added guard to check for initial api request, redirect to page 500
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ThemedComponent } from '../shared/theme-support/themed.component';
|
||||
import { PageInternalServerErrorComponent } from './page-internal-server-error.component';
|
||||
|
||||
/**
|
||||
* Themed wrapper for PageInternalServerErrorComponent
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-themed-search-page',
|
||||
styleUrls: [],
|
||||
templateUrl: '../shared/theme-support/themed.component.html',
|
||||
})
|
||||
export class ThemedPageInternalServerErrorComponent extends ThemedComponent<PageInternalServerErrorComponent> {
|
||||
|
||||
protected getComponentName(): string {
|
||||
return 'PageInternalServerErrorComponent';
|
||||
}
|
||||
|
||||
protected importThemedComponent(themeName: string): Promise<any> {
|
||||
return import(`../../themes/${themeName}/app/page-internal-server-error/page-internal-server-error.component`);
|
||||
}
|
||||
|
||||
protected importUnthemedComponent(): Promise<any> {
|
||||
return import(`./page-internal-server-error.component`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user