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

ababiichuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 419bfc3  [AMBARI-23889] [Log Search UI] Exclude filter not working as 
expected.
419bfc3 is described below

commit 419bfc3b6e372e530f5e2d1ff4c6deec214e5b93
Author: Tobias Istvan <tobias.ist...@gmail.com>
AuthorDate: Wed May 23 16:00:44 2018 +0200

    [AMBARI-23889] [Log Search UI] Exclude filter not working as expected.
---
 .../src/app/components/search-box/search-box.component.ts              | 3 ---
 .../shared/components/dropdown-button/dropdown-button.component.ts     | 3 ++-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/ambari-logsearch/ambari-logsearch-web/src/app/components/search-box/search-box.component.ts
 
b/ambari-logsearch/ambari-logsearch-web/src/app/components/search-box/search-box.component.ts
index eb48bf7..62835bb 100644
--- 
a/ambari-logsearch/ambari-logsearch-web/src/app/components/search-box/search-box.component.ts
+++ 
b/ambari-logsearch/ambari-logsearch-web/src/app/components/search-box/search-box.component.ts
@@ -140,9 +140,6 @@ export class SearchBoxComponent implements OnInit, 
OnDestroy, ControlValueAccess
   }
 
   ngOnDestroy(): void {
-    // this.parameterNameChangeSubject.unsubscribe();
-    // this.parameterAddSubject.unsubscribe();
-    // this.updateValueSubject.unsubscribe();
     this.subscriptions.forEach((subscription: Subscription) => 
subscription.unsubscribe());
   }
 
diff --git 
a/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/dropdown-button/dropdown-button.component.ts
 
b/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/dropdown-button/dropdown-button.component.ts
index 403e2d7..ef014e0 100644
--- 
a/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/dropdown-button/dropdown-button.component.ts
+++ 
b/ambari-logsearch/ambari-logsearch-web/src/app/modules/shared/components/dropdown-button/dropdown-button.component.ts
@@ -108,7 +108,8 @@ export class DropdownButtonComponent {
     }
     const checkedItems = this.options.filter((option: ListItem): boolean => 
option.isChecked);
     this.selection = checkedItems;
-    this.selectItem.emit(checkedItems.map((option: ListItem): any => 
option.value));
+    const selectedValues = checkedItems.map((option: ListItem): any => 
option.value);
+    this.selectItem.emit(this.isMultipleChoice ? selectedValues : 
selectedValues.shift());
   }
 
 }

-- 
To stop receiving notification emails like this one, please contact
ababiic...@apache.org.

Reply via email to