solving lint issues

This commit is contained in:
cris
2023-03-10 03:39:03 +00:00
parent 1ca8529440
commit 1c2d96ce43
3 changed files with 5 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ export class SubmissionEditComponent implements OnDestroy, OnInit {
private itemDataService: ItemDataService,
private submissionService: SubmissionService,
private translate: TranslateService,
private submissionJsonPatchOperationsService: SubmissionJsonPatchOperationsService) {
private submissionJsonPatchOperationsService: SubmissionJsonPatchOperationsService) {
}
/**
@@ -112,8 +112,8 @@ export class SubmissionEditComponent implements OnDestroy, OnInit {
*/
ngOnInit() {
this.collectionModifiable = this.route.snapshot.data['collectionModifiable'];
this.collectionModifiable = this.route.snapshot.data.collectionModifiable;
this.subs.push(
this.route.paramMap.pipe(
switchMap((params: ParamMap) => this.submissionService.retrieveSubmission(params.get('id'))),

View File

@@ -51,7 +51,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
* @type {SubmissionDefinitionsModel}
*/
@Input() currentDefinition: string;
/**
* Checks if the collection can be modifiable by the user
* @type {booelan}
@@ -150,7 +150,6 @@ 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)
}
/**

View File

@@ -34,7 +34,7 @@ import {
resolve: {
breadcrumb: I18nBreadcrumbResolver
},
data: {
data: {
title: 'workflow-item.edit.title',
breadcrumbKey: 'workflow-item.edit',
collectionModifiable: true