mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
Revert "Submission dropzone issues"
This commit is contained in:
@@ -15,8 +15,6 @@ import { SubmissionObjectEntry } from '../objects/submission-objects.reducer';
|
||||
import { SectionDataObject } from '../sections/models/section-data.model';
|
||||
import { SubmissionService } from '../submission.service';
|
||||
import { Item } from '../../core/shared/item.model';
|
||||
import { SectionsType } from '../sections/sections-type';
|
||||
import { SectionsService } from '../sections/sections.service';
|
||||
|
||||
/**
|
||||
* This component represents the submission form.
|
||||
@@ -71,11 +69,6 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
|
||||
*/
|
||||
public loading: Observable<boolean> = observableOf(true);
|
||||
|
||||
/**
|
||||
* Emits true when the submission config has bitstream uploading enabled in submission
|
||||
*/
|
||||
public uploadEnabled$: Observable<boolean>;
|
||||
|
||||
/**
|
||||
* Observable of the list of submission's sections
|
||||
* @type {Observable<WorkspaceitemSectionsObject>}
|
||||
@@ -107,14 +100,12 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
|
||||
* @param {ChangeDetectorRef} changeDetectorRef
|
||||
* @param {HALEndpointService} halService
|
||||
* @param {SubmissionService} submissionService
|
||||
* @param {SectionsService} sectionsService
|
||||
*/
|
||||
constructor(
|
||||
private authService: AuthService,
|
||||
private changeDetectorRef: ChangeDetectorRef,
|
||||
private halService: HALEndpointService,
|
||||
private submissionService: SubmissionService,
|
||||
private sectionsService: SectionsService) {
|
||||
private submissionService: SubmissionService) {
|
||||
this.isActive = true;
|
||||
}
|
||||
|
||||
@@ -138,7 +129,6 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
|
||||
return observableOf([]);
|
||||
}
|
||||
}));
|
||||
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