vc-create-dashboard 2.8.16 → 2.8.18
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,7 +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
|
|
3205
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, new Date(this.dashboardForm?.selectedFromDate));
|
|
3206
3206
|
if (!this.dashboardForm.selectedFromDate) {
|
|
3207
3207
|
this.dashboardForm.selectedToDate = undefined;
|
|
3208
3208
|
this.hideToDate = true;
|
|
@@ -3699,8 +3699,10 @@ class CreateDashboardComponent {
|
|
|
3699
3699
|
}
|
|
3700
3700
|
this.vLoader = true;
|
|
3701
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",
|
|
3702
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard, new Date(dashboard?.selectedFromDate));
|
|
3703
|
+
// console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123",dayjs(dashboard?.selectedFromDate).format('YYYY-MM-DD'))
|
|
3704
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') checking ", this.mode);
|
|
3705
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') checking 0", dayjs(new Date(dashboard?.selectedFromDate)).format('YYYY-MM-DD'));
|
|
3704
3706
|
const payload = {
|
|
3705
3707
|
dashboard_name: dashboard.dashboardName,
|
|
3706
3708
|
description: [
|
|
@@ -3716,12 +3718,13 @@ class CreateDashboardComponent {
|
|
|
3716
3718
|
risk_category: this.returnIds(dashboard.selectedRiskCategories, 'category_id'),
|
|
3717
3719
|
display_criteria: (dashboard.displayCriteria === 'and') ? 'BOTH_RC_AND_CATEGORY' : 'RC_OR_CATEGORY',
|
|
3718
3720
|
timeframe: {
|
|
3719
|
-
start_date: (dashboard.selectedFromDate) ? dayjs(dashboard
|
|
3720
|
-
end_date: (dashboard.selectedToDate) ? dayjs(dashboard
|
|
3721
|
+
start_date: (dashboard.selectedFromDate) ? dayjs(new Date(dashboard?.selectedFromDate)).format('YYYY-MM-DD') : '',
|
|
3722
|
+
end_date: (dashboard.selectedToDate) ? dayjs(new Date(dashboard?.selectedToDate)).format('YYYY-MM-DD') : '',
|
|
3721
3723
|
},
|
|
3722
3724
|
email_summary: this.setFrequency('', 'export'),
|
|
3723
3725
|
widget_details: dashboard.configureWidget
|
|
3724
3726
|
};
|
|
3727
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') checking 1", this.mode);
|
|
3725
3728
|
if (this.mode == 'CREATE') {
|
|
3726
3729
|
this.createDashboardService.submitDashboard(payload).subscribe((res) => {
|
|
3727
3730
|
this.vLoader = false;
|