vc-create-dashboard 2.8.14 → 2.8.16

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.
@@ -3202,6 +3202,7 @@ class CreateDashboardComponent {
3202
3202
  this.datePickerOverlay = true;
3203
3203
  }
3204
3204
  closeFromDatePicker() {
3205
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, this.dashboardForm.selectedFromDate);
3205
3206
  if (!this.dashboardForm.selectedFromDate) {
3206
3207
  this.dashboardForm.selectedToDate = undefined;
3207
3208
  this.hideToDate = true;
@@ -3213,6 +3214,7 @@ class CreateDashboardComponent {
3213
3214
  return;
3214
3215
  }
3215
3216
  let minToDate = this.setToDate(this.dashboardForm.selectedFromDate);
3217
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>1", minToDate);
3216
3218
  this.toDatePickerConfig = { min: minToDate };
3217
3219
  const fromDate = new Date(minToDate.split('-').reverse().join('-'));
3218
3220
  const toDate = new Date(this.dashboardForm.selectedToDate);
@@ -3675,7 +3677,7 @@ class CreateDashboardComponent {
3675
3677
  if (!this.dashboardForm.dashboardName || this.dashboardForm.dashboardName.trim() == ''
3676
3678
  || (this.dashboardForm.dashboardName.length > 30)
3677
3679
  || (this.textCount.transform(this.dashboardForm?.dashboardDescriptionText) > 250)
3678
- || (this.dashboardForm.selectedFromDate && (!this.dashboardForm.selectedToDate))
3680
+ || (this.dashboardForm?.selectedFromDate && (!this.dashboardForm.selectedToDate))
3679
3681
  || (this.dashboardForm.selectedResponsibilityCenters.length == 0 &&
3680
3682
  this.dashboardForm.selectedResponsibilityCategories.length == 0 &&
3681
3683
  this.dashboardForm.selectedRiskCategories.length == 0)) {
@@ -3697,6 +3699,8 @@ class CreateDashboardComponent {
3697
3699
  }
3698
3700
  this.vLoader = true;
3699
3701
  const dashboard = this.dashboardForm;
3702
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard);
3703
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard?.selectedFromDate).format('YYYY-MM-DD'));
3700
3704
  const payload = {
3701
3705
  dashboard_name: dashboard.dashboardName,
3702
3706
  description: [