UI: Always visible action button in multiple input widgets
This commit is contained in:
parent
3a3771db64
commit
93fb9754ef
@ -19,7 +19,7 @@
|
||||
[formGroup]="multipleInputFormGroup"
|
||||
tb-toast toastTarget="{{ toastTargetId }}"
|
||||
(ngSubmit)="saveForm()" novalidate autocomplete="off">
|
||||
<div style="padding: 0 8px;" *ngIf="entityDetected && isAllParametersValid">
|
||||
<div class="tb-multiple-input-container" *ngIf="entityDetected && isAllParametersValid">
|
||||
<fieldset *ngFor="let source of sources" [ngClass]="{'fields-group': settings.showGroupTitle}">
|
||||
<legend class="group-title" *ngIf="settings.showGroupTitle">{{ getGroupTitle(source.datasource) }}
|
||||
</legend>
|
||||
@ -142,8 +142,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="mat-padding" fxLayout="row" fxLayoutAlign="end center"
|
||||
*ngIf="entityDetected && settings.showActionButtons">
|
||||
*ngIf="entityDetected && isAllParametersValid && settings.showActionButtons">
|
||||
<button mat-button color="primary" type="button"
|
||||
(click)="discardAll()" style="max-height: 50px; margin-right:20px;"
|
||||
[disabled]="!multipleInputFormGroup.dirty">
|
||||
@ -155,7 +156,6 @@
|
||||
{{ saveButtonLabel }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tb-multiple-input__errors" fxLayout="column" fxLayoutAlign="center center" style="height: 100%;"
|
||||
*ngIf="(!entityDetected || !isAllParametersValid) && datasourceDetected">
|
||||
<div style="text-align: center; font-size: 18px; color: #a0a0a0;" [fxHide]="entityDetected">
|
||||
|
||||
@ -17,8 +17,15 @@
|
||||
|
||||
.tb-multiple-input {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.tb-multiple-input-container {
|
||||
padding: 0 8px;
|
||||
flex: 1 1 100%;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.fields-group {
|
||||
padding: 0 8px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user