running-process-select-output-artifacts.component.html 1.08 KB
Newer Older
1
2
3
4
5
<ng-container *ngIf="outputArtifacts.length === 0">
  <div class="alert alert-info">
    This building block has no output artifacts.
  </div>
  <div class="d-flex">
Alexander Philipp Nowosad's avatar
Alexander Philipp Nowosad committed
6
7
8
9
10
11
12
    <button
      type="button"
      class="btn btn-primary btn-block"
      (click)="nextStep()"
    >
      Finish execution
    </button>
13
14
  </div>
</ng-container>
Alexander Philipp Nowosad's avatar
Alexander Philipp Nowosad committed
15
16
17
18
19
<form
  [formGroup]="form"
  *ngIf="outputArtifacts.length > 0"
  (ngSubmit)="submitForm()"
>
20
21
22
23
24
  <div formArrayName="outputArtifacts">
    <app-running-process-select-output-artifact
      *ngFor="let artifact of outputArtifacts; let index = index"
      formGroupName="{{ index }}"
      [artifact]="artifact"
25
      [internalArtifact]="internalOutputArtifacts[index]"
26
27
28
      [processArtifacts]="runningProcess.artifacts"
    ></app-running-process-select-output-artifact>
  </div>
29
  <div class="d-flex">
Alexander Philipp Nowosad's avatar
Alexander Philipp Nowosad committed
30
31
    <button
      type="submit"
32
33
34
      class="btn btn-sm btn-block"
      [class.btn-dark]="!changed"
      [class.btn-primary]="changed"
Alexander Philipp Nowosad's avatar
Alexander Philipp Nowosad committed
35
36
      [disabled]="!form.valid"
    >
37
      Update Artifacts<span *ngIf="changed"> (unsaved changes)</span>
Alexander Philipp Nowosad's avatar
Alexander Philipp Nowosad committed
38
    </button>
39
40
  </div>
</form>