mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
127047: Merge branch 'themed-SubmissionComponents_contribute-7.6' into 'themed-SubmissionComponents_contribute-main'
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { ThemedComponent } from '../../../shared/theme-support/themed.component';
|
||||
import { SubmissionSectionContainerComponent } from './section-container.component';
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { SectionDataObject } from '../models/section-data.model';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-themed-submission-section-container',
|
||||
styleUrls: [],
|
||||
templateUrl: '../../../shared/theme-support/themed.component.html',
|
||||
})
|
||||
export class ThemedSubmissionSectionContainerComponent extends ThemedComponent<SubmissionSectionContainerComponent> {
|
||||
@Input() collectionId: string;
|
||||
@Input() sectionData: SectionDataObject;
|
||||
@Input() submissionId: string;
|
||||
|
||||
protected inAndOutputNames: (keyof SubmissionSectionContainerComponent & keyof this)[] = ['collectionId', 'sectionData', 'submissionId'];
|
||||
|
||||
protected getComponentName(): string {
|
||||
return 'SubmissionSectionContainerComponent';
|
||||
}
|
||||
|
||||
protected importThemedComponent(themeName: string): Promise<any> {
|
||||
return import(`../../../../themes/${themeName}/app/submission/sections/container/section-container.component`);
|
||||
}
|
||||
|
||||
protected importUnthemedComponent(): Promise<any> {
|
||||
return import(`./section-container.component`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user