mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
solving lint issues
This commit is contained in:
@@ -104,7 +104,7 @@ export class SubmissionEditComponent implements OnDestroy, OnInit {
|
|||||||
private itemDataService: ItemDataService,
|
private itemDataService: ItemDataService,
|
||||||
private submissionService: SubmissionService,
|
private submissionService: SubmissionService,
|
||||||
private translate: TranslateService,
|
private translate: TranslateService,
|
||||||
private submissionJsonPatchOperationsService: SubmissionJsonPatchOperationsService) {
|
private submissionJsonPatchOperationsService: SubmissionJsonPatchOperationsService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -112,8 +112,8 @@ export class SubmissionEditComponent implements OnDestroy, OnInit {
|
|||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this.collectionModifiable = this.route.snapshot.data['collectionModifiable'];
|
this.collectionModifiable = this.route.snapshot.data.collectionModifiable;
|
||||||
|
|
||||||
this.subs.push(
|
this.subs.push(
|
||||||
this.route.paramMap.pipe(
|
this.route.paramMap.pipe(
|
||||||
switchMap((params: ParamMap) => this.submissionService.retrieveSubmission(params.get('id'))),
|
switchMap((params: ParamMap) => this.submissionService.retrieveSubmission(params.get('id'))),
|
||||||
|
@@ -51,7 +51,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
|
|||||||
* @type {SubmissionDefinitionsModel}
|
* @type {SubmissionDefinitionsModel}
|
||||||
*/
|
*/
|
||||||
@Input() currentDefinition: string;
|
@Input() currentDefinition: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the collection can be modifiable by the user
|
* Checks if the collection can be modifiable by the user
|
||||||
* @type {booelan}
|
* @type {booelan}
|
||||||
@@ -150,7 +150,6 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.pathCombiner = new JsonPatchOperationPathCombiner('sections', 'collection');
|
this.pathCombiner = new JsonPatchOperationPathCombiner('sections', 'collection');
|
||||||
this.available$ = this.sectionsService.isSectionTypeAvailable(this.submissionId, SectionsType.collection);
|
this.available$ = this.sectionsService.isSectionTypeAvailable(this.submissionId, SectionsType.collection);
|
||||||
console.log("this.collectionModifiable", this.collectionModifiable)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -34,7 +34,7 @@ import {
|
|||||||
resolve: {
|
resolve: {
|
||||||
breadcrumb: I18nBreadcrumbResolver
|
breadcrumb: I18nBreadcrumbResolver
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
title: 'workflow-item.edit.title',
|
title: 'workflow-item.edit.title',
|
||||||
breadcrumbKey: 'workflow-item.edit',
|
breadcrumbKey: 'workflow-item.edit',
|
||||||
collectionModifiable: true
|
collectionModifiable: true
|
||||||
|
Reference in New Issue
Block a user