mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00

# Conflicts: # src/app/item-page/alerts/themed-item-alerts.component.ts # src/app/shared/shared.module.ts # src/themes/custom/lazy-theme.module.ts
31 lines
991 B
TypeScript
31 lines
991 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { Item } from '../../core/shared/item.model';
|
|
import { ItemAlertsComponent } from './item-alerts.component';
|
|
import { ThemedComponent } from '../../shared/theme-support/themed.component';
|
|
|
|
/**
|
|
* Themed wrapper for {@link ItemAlertsComponent}
|
|
*/
|
|
@Component({
|
|
selector: 'ds-themed-item-alerts',
|
|
styleUrls: [],
|
|
templateUrl: '../../shared/theme-support/themed.component.html',
|
|
})
|
|
export class ThemedItemAlertsComponent extends ThemedComponent<ItemAlertsComponent> {
|
|
protected inAndOutputNames: (keyof ItemAlertsComponent & keyof this)[] = ['item'];
|
|
|
|
@Input() item: Item;
|
|
|
|
protected getComponentName(): string {
|
|
return 'ItemAlertsComponent';
|
|
}
|
|
|
|
protected importThemedComponent(themeName: string): Promise<any> {
|
|
return import(`../../../themes/${themeName}/app/item-page/alerts/item-alerts.component`);
|
|
}
|
|
|
|
protected importUnthemedComponent(): Promise<any> {
|
|
return import('./item-alerts.component');
|
|
}
|
|
}
|