vc-create-dashboard 2.6.0 → 2.6.2

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.
@@ -1,7 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Pipe, Optional, EventEmitter, Component, Input, Output, Directive, HostListener, ViewChild, forwardRef, NgModule } from '@angular/core';
3
3
  import * as dayjs from 'dayjs';
4
- import * as customParseFormat from 'dayjs/plugin/customParseFormat';
5
4
  import * as i1 from '@angular/common/http';
6
5
  import { HttpHeaders } from '@angular/common/http';
7
6
  import { JwtHelperService } from '@auth0/angular-jwt';
@@ -1910,11 +1909,13 @@ class UserListComponent {
1910
1909
  });
1911
1910
  this.footerDetails.displayElementKey = this.listDetails.displayElementKey;
1912
1911
  this.footerDetails.elementId = this.listDetails.elementIdKey;
1913
- this.dashboardService.getAllGroups().subscribe((res) => {
1914
- this.groupdata = res.data;
1915
- this.totalgroups = this.groupdata.length;
1916
- this.total_group_pages = res.total_pages;
1917
- });
1912
+ if (this.groupsEnabled) {
1913
+ this.dashboardService.getAllGroups().subscribe((res) => {
1914
+ this.groupdata = res.data;
1915
+ this.totalgroups = this.groupdata.length;
1916
+ this.total_group_pages = res.total_pages;
1917
+ });
1918
+ }
1918
1919
  if (this.listDetails.selectedGroupList.length > 0) {
1919
1920
  this.selectedgroupList = [...new Set(this.listDetails.selectedGroupList)];
1920
1921
  const selectedData = [...new Set(this.listDetails.selectedGroupList)];
@@ -2948,7 +2949,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2948
2949
  type: Output
2949
2950
  }] } });
2950
2951
 
2951
- dayjs.extend(customParseFormat);
2952
+ // dayjs.extend(customParseFormat);
2952
2953
  class CreateDashboardComponent {
2953
2954
  constructor(createDashboardService, paginationService, cdr, snackBar, popoverService, configureWidgetsService, textCount) {
2954
2955
  this.createDashboardService = createDashboardService;