This is an automated email from the ASF dual-hosted git repository.

hshpak pushed a commit to branch 
feat/DATALAB-2963/close-filter-pop-up-by-clicking-outside
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 3f71cc600aff3ec81b17d17ec517028965e4af96
Author: Hennadii_Shpak <[email protected]>
AuthorDate: Tue Aug 9 12:55:25 2022 +0300

    removed checkbox in dropdown if it have only one value
---
 .../resources/exploratory/page-filter/page-filter.component.html  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/page-filter/page-filter.component.html
 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/page-filter/page-filter.component.html
index dd527e809..b85d4cee1 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/page-filter/page-filter.component.html
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/page-filter/page-filter.component.html
@@ -51,7 +51,7 @@
                   disableOptionCentering
                   panelClass="create-resources-dialog scrolling"
                   [placeholder]="placeholders.status"
-                  multiple
+                  [multiple]="($filterDropdownData | async).statuses.length > 
1"
                 >
                   <mat-select-trigger class="select__value">
                     {{statuses.value | normalizeDropdownMultiValue: 
selectAllValue | titlecase}}
@@ -89,7 +89,7 @@
                   disableOptionCentering
                   panelClass="create-resources-dialog scrolling"
                   [placeholder]="placeholders.endpoint"
-                  multiple
+                  [multiple]="($filterDropdownData | async).endpoints.length > 
1"
                 >
                   <mat-select-trigger class="select__value">
                     {{endpoints.value | normalizeDropdownMultiValue: 
selectAllValue}}
@@ -127,7 +127,7 @@
                   disableOptionCentering
                   panelClass="create-resources-dialog scrolling"
                   [placeholder]="placeholders.templateName"
-                  multiple
+                  [multiple]="($filterDropdownData | 
async).templateNames.length > 1"
                 >
                   <mat-select-trigger class="select__value">
                     {{templateNames.value | normalizeDropdownMultiValue: 
selectAllValue}}
@@ -165,7 +165,7 @@
                   disableOptionCentering
                   panelClass="create-resources-dialog scrolling"
                   [placeholder]="placeholders.sharing"
-                  multiple
+                  [multiple]="($filterDropdownData | 
async).sharingStatuses.length > 1"
                 >
                   <mat-select-trigger class="select__value">
                     {{sharingStatuses.value | normalizeDropdownMultiValue: 
selectAllValue | titlecase}}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to