stable

Clone or download

Read-only

fix: Change selection when a date is chosen manually

Part of request #11352 Timetracking should be able to compute time for one day When users select values manually, the preset selectbox still display the last selected value and it is rather misleading because it is not clear wheteher it is the manually selected dates or the preset that has been applied. Displaying a placeholder in this case seems to be the best solution. This commit changes this behavior and now a new 'Please choose' is written in the selection option when a date is selected in the date picker. Change-Id: I838233975cbd297a70f78e74a0cda7315db54734

Modified Files

Name
M plugins/timetracking/scripts/personal-timetracking-widget/package.json +1 −0 Go to diff View file
M plugins/timetracking/scripts/personal-timetracking-widget/pnpm-lock.yaml +3 −0 Go to diff View file
M plugins/timetracking/scripts/personal-timetracking-widget/po/fr_FR.po +3 −0 Go to diff View file
M plugins/timetracking/scripts/personal-timetracking-widget/src/components/WidgetWritingMode.test.ts +51 −3 Go to diff View file
M plugins/timetracking/scripts/personal-timetracking-widget/src/components/WidgetWritingMode.vue +20 −8 Go to diff View file
M plugins/timetracking/scripts/personal-timetracking-widget/src/helper/predefined-time-periods.ts +14 −6 Go to diff View file
M plugins/timetracking/scripts/personal-timetracking-widget/src/store/root.ts +4 −2 Go to diff View file