vc-create-dashboard 2.7.3 → 2.7.4
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.
|
@@ -3799,7 +3799,7 @@ class CreateDashboardComponent {
|
|
|
3799
3799
|
}
|
|
3800
3800
|
}
|
|
3801
3801
|
populateDashboardForm(data) {
|
|
3802
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
3802
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3803
3803
|
try {
|
|
3804
3804
|
console.log("datattttta ===>", data, this.groupList);
|
|
3805
3805
|
this.dashboardForm.dashboardName = data === null || data === void 0 ? void 0 : data.dashboard_name,
|
|
@@ -3813,14 +3813,14 @@ class CreateDashboardComponent {
|
|
|
3813
3813
|
this.dashboardForm.selectedResponsibilityCategories = this.setList(this.allComplianceCategories, data === null || data === void 0 ? void 0 : data.responsibility_category, 'category_id');
|
|
3814
3814
|
this.dashboardForm.selectedRiskCategories = this.setList(this.allRiskCategories, data === null || data === void 0 ? void 0 : data.risk_category, 'category_id');
|
|
3815
3815
|
this.dashboardForm.displayCriteria = ((data === null || data === void 0 ? void 0 : data.display_criteria) === "BOTH_RC_AND_CATEGORY") ? 'and' : 'or';
|
|
3816
|
-
this.dashboardForm.selectedFromDate = ((_d = data === null || data === void 0 ? void 0 : data.timeframe) === null || _d === void 0 ? void 0 : _d.start_date) ? (
|
|
3817
|
-
this.dashboardForm.selectedToDate = ((
|
|
3816
|
+
this.dashboardForm.selectedFromDate = ((_d = data === null || data === void 0 ? void 0 : data.timeframe) === null || _d === void 0 ? void 0 : _d.start_date) ? (_e = moment('2022-11-22', 'YYYY-MM-DD')) === null || _e === void 0 ? void 0 : _e.toDate() : undefined;
|
|
3817
|
+
this.dashboardForm.selectedToDate = ((_f = data === null || data === void 0 ? void 0 : data.timeframe) === null || _f === void 0 ? void 0 : _f.end_date) ? (_g = moment('2022-11-22', 'YYYY-MM-DD')) === null || _g === void 0 ? void 0 : _g.toDate() : undefined;
|
|
3818
3818
|
this.vLoader = false;
|
|
3819
3819
|
this.dashboardForm.configureWidget = data.widget_details;
|
|
3820
3820
|
this.selectedWidgets = data.widget_details.length > 0 ? [...new Set(data.widget_details)] : [];
|
|
3821
3821
|
this.displayedWidgets = data.all_widgets.length > 0 ? [...new Set(data.all_widgets)] : [];
|
|
3822
3822
|
this.setFrequency(data === null || data === void 0 ? void 0 : data.email_summary, 'import');
|
|
3823
|
-
let minToDate = this.setToDate((
|
|
3823
|
+
let minToDate = this.setToDate((_h = data === null || data === void 0 ? void 0 : data.timeframe) === null || _h === void 0 ? void 0 : _h.start_date);
|
|
3824
3824
|
this.toDatePickerConfig = { min: minToDate };
|
|
3825
3825
|
this.hideToDate = true;
|
|
3826
3826
|
console.log(" this.dashboardForm ===>", data, this.groupList);
|