collectionModifiable can be null

This commit is contained in:
cris
2023-03-12 19:39:26 +00:00
parent 1c2d96ce43
commit f561ff8f35
3 changed files with 9 additions and 4 deletions

View File

@@ -34,10 +34,15 @@ export class SubmissionEditComponent implements OnDestroy, OnInit {
* The collection id this submission belonging to * The collection id this submission belonging to
* @type {string} * @type {string}
*/ */
public collectionModifiable: boolean;
public collectionId: string; public collectionId: string;
/**
* Checks if the collection can be modifiable by the user
* @type {booelan}
*/
public collectionModifiable: boolean | null = null;
/** /**
* The list of submission's sections * The list of submission's sections
* @type {WorkspaceitemSectionsObject} * @type {WorkspaceitemSectionsObject}

View File

@@ -56,7 +56,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
* Checks if the collection can be modifiable by the user * Checks if the collection can be modifiable by the user
* @type {booelan} * @type {booelan}
*/ */
@Input() collectionModifiable: boolean; @Input() collectionModifiable: boolean | null = null;
/** /**
* The submission id * The submission id

View File

@@ -41,7 +41,7 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
* Checks if the collection can be modifiable by the user * Checks if the collection can be modifiable by the user
* @type {booelan} * @type {booelan}
*/ */
@Input() collectionModifiable: boolean; @Input() collectionModifiable: boolean | null = null;
/** /**