collection is not modifiable in workflowitem section

This commit is contained in:
cris
2023-03-10 03:22:47 +00:00
parent 1d58910d70
commit 1ca8529440
7 changed files with 29 additions and 3 deletions

View File

@@ -51,6 +51,12 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
* @type {SubmissionDefinitionsModel}
*/
@Input() currentDefinition: string;
/**
* Checks if the collection can be modifiable by the user
* @type {booelan}
*/
@Input() collectionModifiable: boolean;
/**
* The submission id
@@ -144,6 +150,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
ngOnInit() {
this.pathCombiner = new JsonPatchOperationPathCombiner('sections', 'collection');
this.available$ = this.sectionsService.isSectionTypeAvailable(this.submissionId, SectionsType.collection);
console.log("this.collectionModifiable", this.collectionModifiable)
}
/**