vc-create-dashboard 2.8.10 → 2.8.12
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.
|
@@ -3694,7 +3694,7 @@ class CreateDashboardComponent {
|
|
|
3694
3694
|
* Validates the data submitted on create dashboard form
|
|
3695
3695
|
*/
|
|
3696
3696
|
validateDashboard() {
|
|
3697
|
-
var _a;
|
|
3697
|
+
var _a, _b;
|
|
3698
3698
|
setTimeout(() => {
|
|
3699
3699
|
this.submitted = true;
|
|
3700
3700
|
}, 100);
|
|
@@ -3706,7 +3706,7 @@ class CreateDashboardComponent {
|
|
|
3706
3706
|
if (!this.dashboardForm.dashboardName || this.dashboardForm.dashboardName.trim() == ''
|
|
3707
3707
|
|| (this.dashboardForm.dashboardName.length > 30)
|
|
3708
3708
|
|| (this.textCount.transform((_a = this.dashboardForm) === null || _a === void 0 ? void 0 : _a.dashboardDescriptionText) > 250)
|
|
3709
|
-
|| (this.dashboardForm.selectedFromDate && (!this.dashboardForm.selectedToDate))
|
|
3709
|
+
|| (((_b = this.dashboardForm) === null || _b === void 0 ? void 0 : _b.selectedFromDate) && (!this.dashboardForm.selectedToDate))
|
|
3710
3710
|
|| (this.dashboardForm.selectedResponsibilityCenters.length == 0 &&
|
|
3711
3711
|
this.dashboardForm.selectedResponsibilityCategories.length == 0 &&
|
|
3712
3712
|
this.dashboardForm.selectedRiskCategories.length == 0)) {
|
|
@@ -3728,6 +3728,8 @@ class CreateDashboardComponent {
|
|
|
3728
3728
|
}
|
|
3729
3729
|
this.vLoader = true;
|
|
3730
3730
|
const dashboard = this.dashboardForm;
|
|
3731
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard);
|
|
3732
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate).format('YYYY-MM-DD'));
|
|
3731
3733
|
const payload = {
|
|
3732
3734
|
dashboard_name: dashboard.dashboardName,
|
|
3733
3735
|
description: [
|