vc-create-dashboard 2.8.21 → 2.8.22
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,6 +1,5 @@
|
|
|
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
|
-
import * as dayjs from 'dayjs';
|
|
4
3
|
import * as i1 from '@angular/common/http';
|
|
5
4
|
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
6
5
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
@@ -3802,8 +3801,8 @@ class CreateDashboardComponent {
|
|
|
3802
3801
|
this.dashboardForm.selectedResponsibilityCategories = this.setList(this.allComplianceCategories, data?.responsibility_category, 'category_id');
|
|
3803
3802
|
this.dashboardForm.selectedRiskCategories = this.setList(this.allRiskCategories, data?.risk_category, 'category_id');
|
|
3804
3803
|
this.dashboardForm.displayCriteria = (data?.display_criteria === "BOTH_RC_AND_CATEGORY") ? 'and' : 'or';
|
|
3805
|
-
this.dashboardForm.selectedFromDate = (data?.timeframe?.start_date) ?
|
|
3806
|
-
this.dashboardForm.selectedToDate = (data?.timeframe?.end_date) ?
|
|
3804
|
+
this.dashboardForm.selectedFromDate = (data?.timeframe?.start_date) ? new Date(data?.timeframe?.start_date) : undefined;
|
|
3805
|
+
this.dashboardForm.selectedToDate = (data?.timeframe?.end_date) ? new Date(data?.timeframe?.end_date) : undefined;
|
|
3807
3806
|
this.vLoader = false;
|
|
3808
3807
|
this.dashboardForm.configureWidget = data.widget_details;
|
|
3809
3808
|
this.selectedWidgets = data.widget_details.length > 0 ? [...new Set(data.widget_details)] : [];
|