mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
17 lines
431 B
TypeScript
17 lines
431 B
TypeScript
|
|
import { SectionsType } from './sections-type';
|
|
|
|
const submissionSectionsMap = new Map();
|
|
export function renderSectionFor(sectionType: SectionsType) {
|
|
return function decorator(objectElement: any) {
|
|
if (!objectElement) {
|
|
return;
|
|
}
|
|
submissionSectionsMap.set(sectionType, objectElement);
|
|
};
|
|
}
|
|
|
|
export function rendersSectionType(sectionType: SectionsType) {
|
|
return submissionSectionsMap.get(sectionType);
|
|
}
|