From 32c1da1c3cce920c1ce8a455df8f23569e1189ba Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 16 Apr 2021 14:24:38 -0400 Subject: [PATCH] correcting some linting errors. --- Dockerfile | 2 +- src/app/file-list/file-list.component.ts | 1 + src/app/workflow-spec-list/workflow-spec-list.component.ts | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 42f0b11..f9b6420 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN npm install && \ ### STAGE 2: Run ### FROM quay.io/sartography/nginx:alpine -RUN set -x && apk add --update --no-cache bash libintl gettext curl +RUN set -x && apk add --update --no-cache bash libintl gettext curl`` COPY --from=builder /app/dist/* /etc/nginx/html/ COPY --from=builder /app/nginx.conf /etc/nginx/conf.d/default.conf diff --git a/src/app/file-list/file-list.component.ts b/src/app/file-list/file-list.component.ts index f11c96a..39b3f1a 100644 --- a/src/app/file-list/file-list.component.ts +++ b/src/app/file-list/file-list.component.ts @@ -81,6 +81,7 @@ export class FileListComponent implements OnInit, OnChanges { makePrimary(fmPrimary: FileMeta) { if (fmPrimary.type === FileType.BPMN) { let numUpdated = 0; + // Fixme: This buisness rule does not belong here. this.fileMetas.forEach(fm => { fm.primary = (fmPrimary.id === fm.id); this.api.updateFileMeta(fm).subscribe(() => { diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.ts b/src/app/workflow-spec-list/workflow-spec-list.component.ts index 589cb88..769d0d9 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.ts @@ -23,7 +23,6 @@ import { } from '../_interfaces/dialog-data'; import { ApiErrorsComponent } from 'sartography-workflow-lib'; import { ActivatedRoute } from '@angular/router'; -import { debounceTime, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators'; import { Location } from '@angular/common'; import { environment } from '../../environments/environment.runtime'; import { FormControl } from '@angular/forms'; @@ -109,7 +108,7 @@ export class WorkflowSpecListComponent implements OnInit { display_order: hasDisplayOrder ? selectedSpec.display_order : 0, }; - + // Open new filename/workflow spec dialog const dialogRef = this.dialog.open(WorkflowSpecDialogComponent, { height: '65vh', @@ -119,7 +118,7 @@ export class WorkflowSpecListComponent implements OnInit { dialogRef.afterClosed().subscribe((data: WorkflowSpecDialogData) => { if (data && data.id && data.name && data.display_name && data.description) { - data.display_order = this.categories.filter(function (entry) { return entry.id === data.category_id;}).length; + data.display_order = this.categories.filter(function (entry) { return entry.id === data.category_id; }).length; this._upsertWorkflowSpecification(selectedSpec == null, data); } });