-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "AAE-12086 The error message is shown for completed task with …
- Loading branch information
1 parent
d8f1946
commit c71d8da
Showing
3 changed files
with
82 additions
and
129 deletions.
There are no files selected for viewing
72 changes: 28 additions & 44 deletions
72
...rocess-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,45 @@ | ||
<div | ||
class="adf-dropdown-widget {{field.className}}" | ||
[class.adf-invalid]="(!field.isValid && isTouched()) || isRestApiFailed" | ||
[class.adf-readonly]="field.readOnly" | ||
[class.adf-left-label-input-container]="field.leftLabels" | ||
> | ||
<div class="adf-dropdown-widget {{field.className}}" | ||
[class.adf-invalid]="(!field.isValid && isTouched()) || isRestApiFailed" [class.adf-readonly]="field.readOnly" [class.adf-left-label-input-container]="field.leftLabels"> | ||
<div class="adf-dropdown-widget-top-labels"> | ||
<label class="adf-label" [attr.for]="field.id" [class.adf-left-label]="field.leftLabels" | ||
>{{field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span> | ||
<label class="adf-label" [attr.for]="field.id" [class.adf-left-label]="field.leftLabels">{{field.name | translate }}<span class="adf-asterisk" | ||
*ngIf="isRequired()">*</span> | ||
</label> | ||
</div> | ||
<div> | ||
<mat-form-field> | ||
<mat-label *ngIf="getDefaultOption(list$ | async) as defaultOption"> | ||
{{ defaultOption.name }} | ||
</mat-label> | ||
<mat-select | ||
class="adf-select" | ||
[id]="field.id" | ||
[(ngModel)]="field.value" | ||
[disabled]="field.readOnly" | ||
[compareWith]="compareDropdownValues" | ||
(ngModelChange)="selectionChangedForField(field)" | ||
[matTooltip]="field.tooltip" | ||
[required]="isRequired()" | ||
panelClass="adf-select-filter" | ||
(blur)="markAsTouched()" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000" | ||
[multiple]="field.hasMultipleValues" | ||
> | ||
<mat-select class="adf-select" | ||
[id]="field.id" | ||
[(ngModel)]="field.value" | ||
[disabled]="field.readOnly" | ||
[compareWith]="compareDropdownValues" | ||
(ngModelChange)="selectionChangedForField(field)" | ||
[matTooltip]="field.tooltip" | ||
[required]="isRequired()" | ||
panelClass="adf-select-filter" | ||
(blur)="markAsTouched()" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000" | ||
[multiple]="field.hasMultipleValues"> | ||
<adf-select-filter-input *ngIf="showInputFilter" (change)="filter$.next($event)"></adf-select-filter-input> | ||
|
||
<mat-option *ngFor="let opt of list$ | async" [value]="getOptionValue(opt, field.value)" [id]="opt.id"> | ||
{{opt.name}} | ||
</mat-option> | ||
<mat-option id="readonlyOption" *ngIf="isReadOnlyType()" [value]="field.value"> | ||
{{field.value}} | ||
<mat-option *ngFor="let opt of list$ | async" | ||
[value]="getOptionValue(opt, field.value)" | ||
[id]="opt.id">{{opt.name}} | ||
</mat-option> | ||
<mat-option id="readonlyOption" *ngIf="isReadOnlyType()" [value]="field.value">{{field.value}}</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
<div *ngIf="!previewState && !field.readOnly"> | ||
<div *ngIf="!previewState"> | ||
<error-widget [error]="field.validationSummary"></error-widget> | ||
<error-widget | ||
class="adf-dropdown-required-message" | ||
*ngIf="showRequiredMessage()" | ||
required="{{ 'FORM.FIELD.REQUIRED' | translate }}" | ||
></error-widget> | ||
<error-widget | ||
class="adf-dropdown-failed-message" | ||
*ngIf="isRestApiFailed" | ||
required="{{ 'FORM.FIELD.REST_API_FAILED' | translate: { hostname: restApiHostName } }}" | ||
></error-widget> | ||
<error-widget | ||
class="adf-dropdown-failed-message" | ||
*ngIf="variableOptionsFailed" | ||
required="{{ 'FORM.FIELD.VARIABLE_DROPDOWN_OPTIONS_FAILED' | translate }}" | ||
></error-widget> | ||
<error-widget class="adf-dropdown-required-message" *ngIf="showRequiredMessage()" | ||
required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
<error-widget class="adf-dropdown-failed-message" *ngIf="isRestApiFailed" | ||
required="{{ 'FORM.FIELD.REST_API_FAILED' | translate: { hostname: restApiHostName } }}"></error-widget> | ||
<error-widget class="adf-dropdown-failed-message" *ngIf="variableOptionsFailed" | ||
required="{{ 'FORM.FIELD.VARIABLE_DROPDOWN_OPTIONS_FAILED' | translate }}"></error-widget> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.