vc-create-dashboard 2.6.5 → 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.
@@ -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
  /**