correcting some linting errors.
This commit is contained in:
parent
404f26aee9
commit
32c1da1c3c
|
@ -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
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue