Skip to content

Commit

Permalink
Merge pull request #386 from kac89/dev
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
kac89 authored Jun 24, 2024
2 parents 0fcc2a3 + 8eb24ae commit 9ce158a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
5 changes: 4 additions & 1 deletion src/app/report/report.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,19 +330,21 @@ export class ReportComponent implements OnInit, OnDestroy {
this.calendar.activeDate = new Date(this.decryptedReportDataChanged.report_metadata.starttest);
this.calendar.updateTodaysDate(); // update calendar state
}

}

onDateChangeReportstart(event) {
const newdate = new Date(event.value).getTime();
this.decryptedReportDataChanged.report_metadata.starttest = newdate;
this.calendarDateChanged();
this.sureYouWanttoLeave();
}

onDateChangeReportend(event) {
const newdate = new Date(event.value).getTime();
this.decryptedReportDataChanged.report_metadata.endtest = newdate;
this.calendarDateChanged();
this.sureYouWanttoLeave();
}

canDeactivate() {
Expand Down Expand Up @@ -1357,6 +1359,7 @@ Sample code here\n\
if (result) {
if (result !== 'nochanges') {
this.report_info.report_name = result;
this.sureYouWanttoLeave();
}
}
});
Expand Down

0 comments on commit 9ce158a

Please sign in to comment.