forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
115051: Created ThemedAdminSearchPageComponent
- Loading branch information
1 parent
ca86437
commit 99384a7
Showing
7 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/app/admin/admin-search-page/themed-admin-search-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Component } from '@angular/core'; | ||
import { ThemedComponent } from '../../shared/theme-support/themed.component'; | ||
import { AdminSearchPageComponent } from './admin-search-page.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link AdminSearchPageComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-admin-search-page', | ||
templateUrl: '../../shared/theme-support/themed.component.html', | ||
}) | ||
export class ThemedAdminSearchPageComponent extends ThemedComponent<AdminSearchPageComponent> { | ||
|
||
protected getComponentName(): string { | ||
return 'AdminSearchPageComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/admin/admin-search-page/admin-search-page.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./admin-search-page.component'); | ||
} | ||
|
||
} |
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions
12
src/themes/custom/app/admin/admin-search-page/admin-search-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component } from '@angular/core'; | ||
import { AdminSearchPageComponent as BaseComponent } from '../../../../../app/admin/admin-search-page/admin-search-page.component'; | ||
|
||
@Component({ | ||
selector: 'ds-admin-search-page', | ||
// styleUrls: ['./admin-search-page.component.scss'], | ||
styleUrls: ['../../../../../app/admin/admin-search-page/admin-search-page.component.scss'], | ||
// templateUrl: './admin-search-page.component.html', | ||
templateUrl: '../../../../../app/admin/admin-search-page/admin-search-page.component.html', | ||
}) | ||
export class AdminSearchPageComponent extends BaseComponent { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters