vc-create-dashboard 2.6.4 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1861,7 +1861,7 @@ class UserListComponent {
1861
1861
  ngOnChanges() {
1862
1862
  }
1863
1863
  ngOnInit() {
1864
- this.groupsEnabled = this.feature.isFeatureEnabled("ff_groups_improvements");
1864
+ this.groupsEnabled = this.feature?.isFeatureEnabled("ff_groups_improvements");
1865
1865
  this.animation = true;
1866
1866
  setTimeout(() => {
1867
1867
  this.animation = false;
@@ -2048,36 +2048,31 @@ class UserListComponent {
2048
2048
  * @param event specifies a boolean value to call api
2049
2049
  */
2050
2050
  paginationFilter(event) {
2051
+ if (!event)
2052
+ return;
2051
2053
  if (this.groupsEnabled) {
2054
+ this.vLoader = true;
2052
2055
  if (this.currentTab == 'USER') {
2053
- if (event) {
2054
- this.vLoader = true;
2055
- this.getUsersList({
2056
- p: this.paginationService.currentPage === 1 ? '' : this.paginationService.currentPage,
2057
- type: '',
2058
- q: (!this.paginationService.searchValue) ? '' : this.paginationService.searchValue,
2059
- });
2060
- }
2061
- }
2062
- else {
2063
- if (event) {
2064
- this.vLoader = true;
2065
- this.getGroupsList({
2066
- page: this.paginationService.currentPage === 1 ? '' : this.paginationService.currentPage,
2067
- groupName: (!this.paginationService.searchValue) ? '' : this.paginationService.searchValue,
2068
- });
2069
- }
2070
- }
2071
- }
2072
- else {
2073
- if (event) {
2074
- this.vLoader = true;
2075
2056
  this.getUsersList({
2076
2057
  p: this.paginationService.currentPage === 1 ? '' : this.paginationService.currentPage,
2077
2058
  type: '',
2078
2059
  q: (!this.paginationService.searchValue) ? '' : this.paginationService.searchValue,
2079
2060
  });
2080
2061
  }
2062
+ else {
2063
+ this.getGroupsList({
2064
+ page: this.paginationService.currentPage === 1 ? '' : this.paginationService.currentPage,
2065
+ groupName: (!this.paginationService.searchValue) ? '' : this.paginationService.searchValue,
2066
+ });
2067
+ }
2068
+ }
2069
+ else {
2070
+ this.vLoader = true;
2071
+ this.getUsersList({
2072
+ p: this.paginationService.currentPage === 1 ? '' : this.paginationService.currentPage,
2073
+ type: '',
2074
+ q: (!this.paginationService.searchValue) ? '' : this.paginationService.searchValue,
2075
+ });
2081
2076
  }
2082
2077
  }
2083
2078
  /**
@@ -2119,9 +2114,11 @@ class UserListComponent {
2119
2114
  this.currentTab = tab;
2120
2115
  this.paginationService.currentPage = 1;
2121
2116
  if (this.currentTab == "USER") {
2117
+ this.searchValue = '';
2122
2118
  this.getUsersList({});
2123
2119
  }
2124
2120
  else {
2121
+ this.searchValue = '';
2125
2122
  this.getGroupsList({});
2126
2123
  }
2127
2124
  }
@@ -3121,7 +3118,7 @@ class CreateDashboardComponent {
3121
3118
  this.isSmiley = false;
3122
3119
  }
3123
3120
  ngOnInit() {
3124
- this.groupsEnabled = this.feature.isFeatureEnabled("ff_groups_improvements");
3121
+ this.groupsEnabled = this.feature?.isFeatureEnabled("ff_groups_improvements");
3125
3122
  this.animation = true;
3126
3123
  setTimeout(() => {
3127
3124
  this.animation = false;