Skip to content

Commit

Permalink
fix: drobowns in side menu in dry run policy[3141]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihar committed Dec 11, 2024
1 parent 6fa4ec0 commit b8ffdb4
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
(onChange)="onSave()"
placeholder="Select UI Metadata Type"
optionLabel="label"
optionValue="value">
optionValue="value"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
(onChange)="onSave()"
optionLabel="name"
optionValue="value"
placeholder="Select Roles">
placeholder="Select Roles"
[appendTo]="'body'"
>
</p-multiSelect>
</td>
</tr>
Expand Down Expand Up @@ -158,7 +160,9 @@
(onChange)="onSave()"
optionLabel="label"
optionValue="value"
placeholder="Select Action">
placeholder="Select Action"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down Expand Up @@ -353,7 +357,9 @@
]"
(onChange)="chanceType($event.value, item)"
[disabled]="readonly"
placeholder="Select Event Type">
placeholder="Select Event Type"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down Expand Up @@ -396,7 +402,9 @@
[options]="getPreparedInputEvents(item)"
[disabled]="readonly"
(onChange)="onSave()"
placeholder="Select Output">
placeholder="Select Output"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down Expand Up @@ -439,7 +447,9 @@
[options]="getPreparedInputEvents(item)"
[disabled]="readonly"
(onChange)="onSave()"
placeholder="Select Input">
placeholder="Select Input"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -462,7 +472,9 @@
]"
(onChange)="onSave()"
[disabled]="readonly"
placeholder="Select Actor">
placeholder="Select Actor"
[appendTo]="'body'"
>
</p-dropdown>

</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
optionValue="value"
[disabled]="!policySchemas"
placeholder="Select a schema"
(onChange)="setProjectSchema($event.value)">
(onChange)="setProjectSchema($event.value)"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down Expand Up @@ -128,7 +130,9 @@
optionLabel="name"
[disabled]="!allCategories"
placeholder="Select a sectoral scope"
(onChange)="onCategoriesChanged()">
(onChange)="onCategoriesChanged()"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -152,7 +156,9 @@
optionLabel="name"
[disabled]="!allCategories"
placeholder="Select a sectoral scope"
(onChange)="onCategoriesChanged()">
(onChange)="onCategoriesChanged()"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -176,7 +182,9 @@
optionLabel="name"
[disabled]="!allCategories"
placeholder="Select a technology type"
(onChange)="onCategoriesChanged()">
(onChange)="onCategoriesChanged()"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -201,7 +209,9 @@
optionLabel="name"
[disabled]="!allCategories"
placeholder="Select migration activity types"
(onChange)="onCategoriesChanged()">
(onChange)="onCategoriesChanged()"
[appendTo]="'body'"
>
</p-multiSelect>
</td>
</tr>
Expand All @@ -226,7 +236,9 @@
optionLabel="name"
[disabled]="!allCategories"
placeholder="Select migration activity types"
(onChange)="onCategoriesChanged()">
(onChange)="onCategoriesChanged()"
[appendTo]="'body'"
>
</p-multiSelect>
</td>
</tr>
Expand Down Expand Up @@ -372,7 +384,6 @@
</ng-container>
</ng-container>
<ng-container *ngIf="type == 'Groups'">
<!-- Groups -->
<ng-container *ngFor="let item of policyGroups; let i=index">
<tr class="propHeader">
<td class="propRowCol cellCollapse" (click)="onHide(propHidden.groupsGroup, i)"
Expand Down Expand Up @@ -416,7 +427,9 @@
optionLabel="name"
optionValue="name"
[disabled]="readonly"
(onChange)="onEditGroup(item)">
(onChange)="onEditGroup(item)"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -437,8 +450,9 @@
optionLabel="name"
optionValue="name"
[disabled]="readonly"
placeholder="Select members"
(onChange)="onEditGroup(item)">
(onChange)="onEditGroup(item)"
[appendTo]="'body'"
>
</p-multiSelect>
</td>
</tr>
Expand All @@ -459,7 +473,9 @@
optionValue="value"
[disabled]="readonly"
placeholder="Select relationship type"
(onChange)="onEditGroup(item)">
(onChange)="onEditGroup(item)"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -480,7 +496,9 @@
optionValue="value"
[disabled]="readonly"
placeholder="Select access type"
(onChange)="onEditGroup(item)">
(onChange)="onEditGroup(item)"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down Expand Up @@ -549,7 +567,9 @@
optionLabel="label"
optionValue="value"
[disabled]="readonly"
placeholder="Select type">
placeholder="Select type"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -576,7 +596,9 @@
optionLabel="label"
optionValue="value"
[disabled]="readonly"
placeholder="Select memo object">
placeholder="Select memo object"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down Expand Up @@ -664,7 +686,9 @@
optionLabel="label"
optionValue="value"
[disabled]="readonly"
(onChange)="onTokenTypeChange(item)">
(onChange)="onTokenTypeChange(item)"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down Expand Up @@ -694,7 +718,9 @@
[options]="enableAdminOptions"
optionLabel="label"
optionValue="value"
[disabled]="readonly">
[disabled]="readonly"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -715,7 +741,9 @@
[options]="enableFreezeOptions"
optionLabel="label"
optionValue="value"
[disabled]="readonly">
[disabled]="readonly"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -736,7 +764,9 @@
[options]="enableKYCOptions"
optionLabel="label"
optionValue="value"
[disabled]="readonly">
[disabled]="readonly"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand All @@ -759,7 +789,9 @@
optionLabel="label"
optionValue="value"
[disabled]="readonly"
(onChange)="onEnableWipeChange(item)">
(onChange)="onEnableWipeChange(item)"
[appendTo]="'body'"
>
</p-dropdown>

</td>
Expand All @@ -784,7 +816,9 @@
[options]="getWipeContractOptions()"
optionLabel="label"
optionValue="value"
[disabled]="readonly">
[disabled]="readonly"
[appendTo]="'body'"
>
</p-dropdown>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@ textarea[readonly] {
.remove-prop[readonly="true"] {
display: none;
} */
} */

::ng-deep p-dropdown .p-dropdown,
::ng-deep p-multiselect .p-multiselect {
width: 100% !important;
}

::ng-deep input {
height: 38px !important;
}

0 comments on commit b8ffdb4

Please sign in to comment.