[DURACOM-291] back porting of fix submission section visibility in order to rely on the configured section scope

This commit is contained in:
Giuseppe Digilio
2024-08-23 16:56:35 +02:00
parent 5c66bb9d2b
commit a77f98e29e
13 changed files with 518 additions and 77 deletions

View File

@@ -4,14 +4,7 @@ import { typedObject } from '../../cache/builders/build-decorators';
import { HALLink } from '../../shared/hal-link.model';
import { ConfigObject } from './config.model';
import { SUBMISSION_SECTION_TYPE } from './config-type';
/**
* An interface that define section visibility and its properties.
*/
export interface SubmissionSectionVisibility {
main: any;
other: any;
}
import { SectionScope, SectionVisibility } from '../../../submission/objects/section-visibility.model';
@typedObject
@inheritSerialization(ConfigObject)
@@ -30,6 +23,12 @@ export class SubmissionSectionModel extends ConfigObject {
@autoserialize
mandatory: boolean;
/**
* The submission scope for this section
*/
@autoserialize
scope: SectionScope;
/**
* A string representing the kind of section object
*/
@@ -37,10 +36,10 @@ export class SubmissionSectionModel extends ConfigObject {
sectionType: SectionsType;
/**
* The [SubmissionSectionVisibility] object for this section
* The [SectionVisibility] object for this section
*/
@autoserialize
visibility: SubmissionSectionVisibility;
visibility: SectionVisibility;
/**
* The {@link HALLink}s for this SubmissionSectionModel