mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +00:00
Merge remote-tracking branch 'origin/main' into more-eslint
This commit is contained in:
37
src/app/shared/log-in/themed-log-in.component.ts
Normal file
37
src/app/shared/log-in/themed-log-in.component.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
} from '@angular/core';
|
||||
|
||||
import { ThemedComponent } from '../theme-support/themed.component';
|
||||
import { LogInComponent } from './log-in.component';
|
||||
|
||||
/**
|
||||
* Themed wrapper for {@link LogInComponent}
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-themed-log-in',
|
||||
styleUrls: [],
|
||||
templateUrl: './../theme-support/themed.component.html',
|
||||
})
|
||||
export class ThemedLogInComponent extends ThemedComponent<LogInComponent> {
|
||||
|
||||
@Input() isStandalonePage: boolean;
|
||||
|
||||
protected inAndOutputNames: (keyof LogInComponent & keyof this)[] = [
|
||||
'isStandalonePage',
|
||||
];
|
||||
|
||||
protected getComponentName(): string {
|
||||
return 'LogInComponent';
|
||||
}
|
||||
|
||||
protected importThemedComponent(themeName: string): Promise<any> {
|
||||
return import(`../../../themes/${themeName}/app/shared/log-in/log-in.component`);
|
||||
}
|
||||
|
||||
protected importUnthemedComponent(): Promise<any> {
|
||||
return import('./log-in.component');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user