Browse Source

changed dialog sizing

pull/12700/head
mpetrov 2 years ago
parent
commit
062fa3a4ed
  1. 5
      ui-ngx/src/app/modules/home/components/calculated-fields/components/test-arguments/calculated-field-test-arguments.component.ts
  2. 2
      ui-ngx/src/app/shared/components/dialog/json-object-edit-dialog.component.html
  3. 1
      ui-ngx/src/app/shared/components/dialog/json-object-edit-dialog.component.ts
  4. 2
      ui-ngx/src/app/shared/components/json-object-edit.component.html

5
ui-ngx/src/app/modules/home/components/calculated-fields/components/test-arguments/calculated-field-test-arguments.component.ts

@ -122,12 +122,13 @@ export class CalculatedFieldTestArgumentsComponent extends PageComponent impleme
openEditJSONDialog(group: FormGroup): void {
this.dialog.open<JsonObjectEditDialogComponent, JsonObjectEditDialogData, CalculatedFieldArgumentEventValue>(JsonObjectEditDialogComponent, {
disableClose: true,
height: '65vh',
height: '760px',
minWidth: 'min(700px, 100%)',
panelClass: ['tb-dialog', 'tb-fullscreen-dialog'],
data: {
jsonValue: group.value,
required: true
required: true,
fillHeight: true
}
}).afterClosed()
.pipe(filter(Boolean))

2
ui-ngx/src/app/shared/components/dialog/json-object-edit-dialog.component.html

@ -35,7 +35,7 @@
class="block h-full"
label="{{ 'value.json-value' | translate }}"
[jsonRequired]="required"
[fillHeight]="false">
[fillHeight]="data.fillHeight">
</tb-json-object-edit>
</fieldset>
</div>

1
ui-ngx/src/app/shared/components/dialog/json-object-edit-dialog.component.ts

@ -30,6 +30,7 @@ export interface JsonObjectEditDialogData {
title?: string;
saveLabel?: string;
cancelLabel?: string;
fillHeight?: boolean;
}
@Component({

2
ui-ngx/src/app/shared/components/json-object-edit.component.html

@ -15,7 +15,7 @@
limitations under the License.
-->
<div class="flex h-full flex-col" style="background: #fff;" [class.fill-height]="fillHeight"
<div class="flex flex-col" style="background: #fff;" [class.fill-height]="fillHeight"
tb-fullscreen
[fullscreen]="fullscreen" (fullscreenChanged)="onFullscreen()">
<div class="tb-json-object-toolbar flex flex-row items-center justify-start">

Loading…
Cancel
Save