fix readonly form in complete task (#3857)

This commit is contained in:
Eugenio Romano
2018-10-03 19:01:02 +01:00
committed by GitHub
parent 98327be669
commit 488ce948be
5 changed files with 64 additions and 36 deletions

View File

@@ -3,7 +3,7 @@
</ng-content>
</div>
<div *ngIf="hasForm()" class="{{form.className}} adf-form-container">
<div *ngIf="hasForm()" class="{{form.className}} adf-form-container" [ngClass]="{'adf-readonly-form': readOnly }">
<mat-card>
<mat-card-header>
<mat-card-title>
@@ -19,7 +19,7 @@
<mat-icon>refresh</mat-icon>
</button>
</div>
<span *ngIf="isTitleEnabled()" class="adf-form-title">{{form.taskName}}</span>
<span *ngIf="isTitleEnabled()" class="adf-form-title">{{form.taskName}}</span>
</h4>
</mat-card-title>
@@ -43,7 +43,7 @@
[disabled]="!isOutcomeButtonEnabled(outcome)"
[class.adf-form-hide-button]="!isOutcomeButtonVisible(outcome, form.readOnly)"
(click)="onOutcomeClicked(outcome)">
{{outcome.name | uppercase | translate}}
{{outcome.name | translate | uppercase }}
</button>
</mat-card-actions>
</mat-card>

View File

@@ -26,7 +26,7 @@
[class.mdl-button--colored]="!outcome.isSystem"
[class.adf-form-hide-button]="!isOutcomeButtonVisible(outcome, form.readOnly)"
(click)="onOutcomeClicked(outcome)">
{{outcome.name| uppercase | translate}}
{{ outcome.name | translate | uppercase}}
</button>
</mat-card-content>
<mat-card-actions *ngIf="showRefreshButton">