mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
Fixes after merge
This commit is contained in:
@@ -1,23 +1,34 @@
|
||||
import { autoserialize, inheritSerialization } from 'cerialize';
|
||||
import { ConfigObject } from './config.model';
|
||||
import { SectionsType } from '../../../submission/sections/sections-type';
|
||||
|
||||
@inheritSerialization(ConfigObject)
|
||||
/**
|
||||
* An interface that define section visibility and its properties.
|
||||
*/
|
||||
export interface SubmissionSectionVisibility {
|
||||
main: any,
|
||||
other: any
|
||||
}
|
||||
|
||||
export class SubmissionSectionModel extends ConfigObject {
|
||||
|
||||
@autoserialize
|
||||
/**
|
||||
* The header for this section
|
||||
*/
|
||||
header: string;
|
||||
|
||||
@autoserialize
|
||||
/**
|
||||
* A boolean representing if this submission section is the mandatory or not
|
||||
*/
|
||||
mandatory: boolean;
|
||||
|
||||
@autoserialize
|
||||
/**
|
||||
* A string representing the kind of section object
|
||||
*/
|
||||
sectionType: SectionsType;
|
||||
|
||||
@autoserialize
|
||||
visibility: {
|
||||
main: any,
|
||||
other: any
|
||||
}
|
||||
/**
|
||||
* The [SubmissionSectionVisibility] object for this section
|
||||
*/
|
||||
visibility: SubmissionSectionVisibility
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user