Add isSectionTypeAvailable method and use it to check if upload section is available

This commit is contained in:
Giuseppe Digilio
2021-04-02 15:22:17 +02:00
committed by lotte
parent d3763ea642
commit 13c239cbc3
5 changed files with 136 additions and 12 deletions

View File

@@ -138,7 +138,7 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
return observableOf([]);
}
}));
this.uploadEnabled$ = this.sectionsService.isSectionAvailable(this.submissionId, SectionsType.Upload);
this.uploadEnabled$ = this.sectionsService.isSectionTypeAvailable(this.submissionId, SectionsType.Upload);
// check if is submission loading
this.loading = this.submissionService.getSubmissionObject(this.submissionId).pipe(