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,9 +34,14 @@ export class SubmissionEditComponent implements OnDestroy, OnInit {
* The collection id this submission belonging to
* @type {string}
*/
public collectionModifiable: boolean;
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

View File

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