|
|
|
@ -1,12 +1,19 @@ |
|
|
|
<div class="step"> |
|
|
|
<div class="row no-gutters step-header"> |
|
|
|
<div class="col-auto"> |
|
|
|
<button class="btn btn-initial mr-1" (click)="makeInitial.emit()" [class.enabled]="step.name !== workflow.initial && !step.isLocked" [class.active]="step.name === workflow.initial" [disabled]="step.name === workflow.initial || step.isLocked || disabled"> |
|
|
|
<button class="btn btn-initial mr-1" (click)="makeInitial.emit()" |
|
|
|
[class.enabled]="step.name !== workflow.initial && !step.isLocked" |
|
|
|
[class.active]="step.name === workflow.initial" |
|
|
|
[disabled]="step.name === workflow.initial || step.isLocked || disabled"> |
|
|
|
<i class="icon-arrow-right text-decent" *ngIf="!step.isLocked"></i> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
<div class="col-auto color pr-2"> |
|
|
|
<sqx-color-picker mode="Circle" [ngModelOptions]="onBlur" [ngModel]="step.color" (ngModelChange)="changeColor($event)" [disabled]="disabled"> |
|
|
|
<sqx-color-picker mode="Circle" |
|
|
|
[disabled]="disabled" |
|
|
|
[ngModelOptions]="onBlur" |
|
|
|
[ngModel]="step.color" |
|
|
|
(ngModelChange)="changeColor($event)" > |
|
|
|
</sqx-color-picker> |
|
|
|
</div> |
|
|
|
<div class="col"> |
|
|
|
@ -26,7 +33,11 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="step-inner"> |
|
|
|
<sqx-workflow-transition *ngFor="let transition of transitions; trackBy: trackByTransition" [transition]="transition" [disabled]="disabled" [roles]="roles" (remove)="transitionRemove.emit(transition)" (update)="changeTransition(transition, $event)"> |
|
|
|
<sqx-workflow-transition *ngFor="let transition of transitions; trackBy: trackByTransition" [transition]="transition" |
|
|
|
[disabled]="disabled" |
|
|
|
[roles]="roles" |
|
|
|
(remove)="transitionRemove.emit(transition)" |
|
|
|
(update)="changeTransition(transition, $event)"> |
|
|
|
</sqx-workflow-transition> |
|
|
|
|
|
|
|
<div class="row transition no-gutters" *ngIf="openSteps.length > 0 && !disabled"> |
|
|
|
@ -47,11 +58,14 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row transition-prevent-updates no-gutters"> |
|
|
|
<div class="row transition-prevent-updates no-gutters align-items-center"> |
|
|
|
<div class="col col-arrow"></div> |
|
|
|
<div class="col col-step"> |
|
|
|
<div class="custom-control custom-checkbox float-right"> |
|
|
|
<input class="custom-control-input transition-prevent-updates-checkbox" type="checkbox" id="preventUpdates_{{step.name}}" [disabled]="disabled" [ngModel]="step.noUpdate" (ngModelChange)="changeNoUpdate($event)"> |
|
|
|
<input class="custom-control-input transition-prevent-updates-checkbox" type="checkbox" id="preventUpdates_{{step.name}}" |
|
|
|
[disabled]="disabled" |
|
|
|
[ngModel]="step.noUpdate" |
|
|
|
(ngModelChange)="changeNoUpdate($event)"> |
|
|
|
|
|
|
|
<label class="custom-control-label" for="preventUpdates_{{step.name}}"> |
|
|
|
{{ 'workflows.preventUpdates' | sqxTranslate }} |
|
|
|
@ -63,13 +77,24 @@ |
|
|
|
<span class="text-decent">{{ 'workflows.syntax.when' | sqxTranslate }}</span> |
|
|
|
</div> |
|
|
|
<div class="col col-step-expression"> |
|
|
|
<input class="form-control" [class.dashed]="!step.noUpdateExpression" spellcheck="false" [disabled]="disabled" [ngModelOptions]="onBlur" [ngModel]="step.noUpdateExpression" (ngModelChange)="changeNoUpdateExpression($event)" placeholder="{{ 'workflows.syntax.expression' | sqxTranslate }}"> |
|
|
|
<input class="form-control" [class.dashed]="!step.noUpdateExpression" spellcheck="false" |
|
|
|
[disabled]="disabled" |
|
|
|
[ngModelOptions]="onBlur" |
|
|
|
[ngModel]="step.noUpdateExpression" |
|
|
|
(ngModelChange)="changeNoUpdateExpression($event)" |
|
|
|
placeholder="{{ 'workflows.syntax.expression' | sqxTranslate }}"> |
|
|
|
</div> |
|
|
|
<div class="col-auto col-label"> |
|
|
|
<span class="text-decent">{{ 'workflows.syntax.for' | sqxTranslate }}</span> |
|
|
|
</div> |
|
|
|
<div class="col col-roles"> |
|
|
|
<sqx-tag-editor [allowDuplicates]="false" [dashed]="true" [disabled]="disabled" (ngModelChange)="changeNoUpdateRoles($event)" [ngModel]="step.noUpdateRoles" [ngModelOptions]="onBlur" [singleLine]="true" [suggestions]="roles" placeholder="{{ 'common.role' | sqxTranslate }}"> |
|
|
|
<sqx-tag-editor [allowDuplicates]="false" [dashed]="true" |
|
|
|
[disabled]="disabled" |
|
|
|
[ngModelOptions]="onBlur" |
|
|
|
[ngModel]="step.noUpdateRoles" |
|
|
|
(ngModelChange)="changeNoUpdateRoles($event)" |
|
|
|
[singleLine]="true" |
|
|
|
[suggestions]="roles" placeholder="{{ 'common.role' | sqxTranslate }}"> |
|
|
|
</sqx-tag-editor> |
|
|
|
</div> |
|
|
|
<div class="col col-button"></div> |
|
|
|
|