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.
114077: Made ProfilePageMetadataFormComponent themeable
- Loading branch information
1 parent
404ccd9
commit f5f00ca
Showing
6 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...pp/profile-page/profile-page-metadata-form/themed-profile-page-metadata-form.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,33 @@ | ||
import { ThemedComponent } from '../../shared/theme-support/themed.component'; | ||
import { Component, Input } from '@angular/core'; | ||
import { ProfilePageMetadataFormComponent } from './profile-page-metadata-form.component'; | ||
import { EPerson } from '../../core/eperson/models/eperson.model'; | ||
|
||
/** | ||
* Themed wrapper for {@link ProfilePageMetadataFormComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-profile-page-metadata-form', | ||
templateUrl: '../../shared/theme-support/themed.component.html', | ||
}) | ||
export class ThemedProfilePageMetadataFormComponent extends ThemedComponent<ProfilePageMetadataFormComponent> { | ||
|
||
@Input() user: EPerson; | ||
|
||
protected inAndOutputNames: (keyof ProfilePageMetadataFormComponent & keyof this)[] = [ | ||
'user', | ||
]; | ||
|
||
protected getComponentName(): string { | ||
return 'ProfilePageMetadataFormComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/profile-page/profile-page-metadata-form/profile-page-metadata-form.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./profile-page-metadata-form.component'); | ||
} | ||
|
||
} |
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
Empty file.
10 changes: 10 additions & 0 deletions
10
...ustom/app/profile-page/profile-page-metadata-form/profile-page-metadata-form.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,10 @@ | ||
import { Component } from '@angular/core'; | ||
import { ProfilePageMetadataFormComponent as BaseComponent } from '../../../../../app/profile-page/profile-page-metadata-form/profile-page-metadata-form.component'; | ||
|
||
@Component({ | ||
selector: 'ds-profile-page-metadata-form', | ||
templateUrl: '../../../../../app/profile-page/profile-page-metadata-form/profile-page-metadata-form.component.html' | ||
// templateUrl: './profile-page-metadata-form.component.html' | ||
}) | ||
export class ProfilePageMetadataFormComponent 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