mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00

# Conflicts: # src/app/admin/admin-search-page/admin-search-results/admin-search-result-grid-element/item-search-result/item-admin-search-result-grid-element.component.ts # src/app/admin/admin-workflow-page/admin-workflow-search-results/admin-workflow-search-result-grid-element/workflow-item/workflow-item-search-result-admin-workflow-grid-element.component.ts # src/app/shared/metadata-representation/metadata-representation-loader.component.ts # src/app/shared/mydspace-actions/claimed-task/switcher/claimed-task-actions-loader.component.ts # src/app/shared/theme-support/themed.component.ts
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import { Component, Input, ChangeDetectorRef } from '@angular/core';
|
|
import { ThemedComponent } from '../theme-support/themed.component';
|
|
import { LoadingComponent } from './loading.component';
|
|
import { ThemeService } from '../theme-support/theme.service';
|
|
|
|
/**
|
|
* Themed wrapper for LoadingComponent
|
|
*/
|
|
@Component({
|
|
selector: 'ds-themed-loading',
|
|
styleUrls: [],
|
|
templateUrl: '../../shared/theme-support/themed.component.html',
|
|
})
|
|
export class ThemedLoadingComponent extends ThemedComponent<LoadingComponent> {
|
|
|
|
@Input() message: string;
|
|
@Input() showMessage: boolean;
|
|
@Input() spinner: boolean;
|
|
|
|
protected inAndOutputNames: (keyof LoadingComponent & keyof this)[] = ['message', 'showMessage', 'spinner'];
|
|
|
|
constructor(
|
|
protected cdr: ChangeDetectorRef,
|
|
protected themeService: ThemeService
|
|
) {
|
|
super(cdr, themeService);
|
|
}
|
|
|
|
protected getComponentName(): string {
|
|
return 'LoadingComponent';
|
|
}
|
|
|
|
protected importThemedComponent(themeName: string): Promise<any> {
|
|
return import(`../../../themes/${themeName}/app/shared/loading/loading.component`);
|
|
}
|
|
|
|
protected importUnthemedComponent(): Promise<any> {
|
|
return import('./loading.component');
|
|
}
|
|
}
|