correcting some linting errors.
This commit is contained in:
parent
404f26aee9
commit
32c1da1c3c
|
@ -12,7 +12,7 @@ RUN npm install && \
|
||||||
|
|
||||||
### STAGE 2: Run ###
|
### STAGE 2: Run ###
|
||||||
FROM quay.io/sartography/nginx:alpine
|
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/dist/* /etc/nginx/html/
|
||||||
COPY --from=builder /app/nginx.conf /etc/nginx/conf.d/default.conf
|
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) {
|
makePrimary(fmPrimary: FileMeta) {
|
||||||
if (fmPrimary.type === FileType.BPMN) {
|
if (fmPrimary.type === FileType.BPMN) {
|
||||||
let numUpdated = 0;
|
let numUpdated = 0;
|
||||||
|
// Fixme: This buisness rule does not belong here.
|
||||||
this.fileMetas.forEach(fm => {
|
this.fileMetas.forEach(fm => {
|
||||||
fm.primary = (fmPrimary.id === fm.id);
|
fm.primary = (fmPrimary.id === fm.id);
|
||||||
this.api.updateFileMeta(fm).subscribe(() => {
|
this.api.updateFileMeta(fm).subscribe(() => {
|
||||||
|
|
|
@ -23,7 +23,6 @@ import {
|
||||||
} from '../_interfaces/dialog-data';
|
} from '../_interfaces/dialog-data';
|
||||||
import { ApiErrorsComponent } from 'sartography-workflow-lib';
|
import { ApiErrorsComponent } from 'sartography-workflow-lib';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { debounceTime, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators';
|
|
||||||
import { Location } from '@angular/common';
|
import { Location } from '@angular/common';
|
||||||
import { environment } from '../../environments/environment.runtime';
|
import { environment } from '../../environments/environment.runtime';
|
||||||
import { FormControl } from '@angular/forms';
|
import { FormControl } from '@angular/forms';
|
||||||
|
@ -119,7 +118,7 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((data: WorkflowSpecDialogData) => {
|
dialogRef.afterClosed().subscribe((data: WorkflowSpecDialogData) => {
|
||||||
if (data && data.id && data.name && data.display_name && data.description) {
|
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);
|
this._upsertWorkflowSpecification(selectedSpec == null, data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue