mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 03:23:07 +00:00
[DURACOM-291] back porting of fix submission section visibility in order to rely on the configured section scope
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user