Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made sure that the plugin work without "@danielmoncada/angular-datetime-picker": "16.0.1" #618

Merged
merged 5 commits into from
Dec 4, 2023

Conversation

sanioooook
Copy link
Contributor

  • Removed references to @danielmoncada/angular-datetime-picker in workflow-case-edit.component.html and workflow-pn.module.ts
  • Replaced owlDateTime with matDatepicker in workflow-case-edit.component.html
  • Updated event handlers for date selection in workflow-case-edit.component.ts

…e-picker

- Removed references to @danielmoncada/angular-datetime-picker in workflow-case-edit.component.html and workflow-pn.module.ts
- Replaced owlDateTime with matDatepicker in workflow-case-edit.component.html
- Updated event handlers for date selection in workflow-case-edit.component.ts
@sanioooook sanioooook changed the title Make sure that the plugin work without "@danielmoncada/angular-datetime-picker": "16.0.1" Made sure that the plugin work without "@danielmoncada/angular-datetime-picker": "16.0.1" Nov 29, 2023
- Refactored the code to use a helper function for selecting dates on the date picker.
- Removed unnecessary code related to spinner animation.
- Updated the WorkflowCaseForEdit class to use separate properties for year, month, and day instead of a Date object.

Edit workflow case test

- Updated the test to create a new instance of Date and set it as the value for deadline and dateOfIncident properties in modelForUpdate.
- Asserted that the updated values are correctly displayed in the UI.
- Refactored the code to improve readability and maintainability
- Introduced a new variable `dateNow` to store the current date
- Updated the `deadline` and `dateOfIncident` properties of the `modelForUpdate` object to use separate day, month, and year values instead of a single Date object
- Move selectDateOnDatePicker function to the correct import path
- Update usage of selectDateOnDatePicker with correct parameters
- Fix date calculation in workflow.edit.ts for dateOfIncident and deadline
@renemadsen renemadsen merged commit 98777c1 into microting:stable Dec 4, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants