mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 22:13:02 +00:00
Add isSectionTypeAvailable method and use it to check if upload section is available
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user