Skip to content

Commit

Permalink
fix(work-accident-notification): alert message (#16925)
Browse files Browse the repository at this point in the history
* moving part of companyinfo to basicinfo to stop autofill

* some fixes

* extract strings

* fix inputs being empty on back button click

* adding alert

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
sigruntg and kodiakhq[bot] authored Nov 18, 2024
1 parent 6e102a0 commit a2b25ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ export const employeeSubSection = (index: number) =>
}))
},
}),
buildAlertMessageField({
id: 'employee.startTimeAlert',
title: '',
message: employee.employee.startTimeAlert,
alertType: 'info',
marginBottom: 0,
}),
buildDateField({
id: `employee[${index}].startOfWorkdayDate`,
width: 'half',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ export const employee = {
},
startOfWorkdayDate: {
id: 'aosh.wan.application:employee.time',
defaultMessage: 'Dagsetning byrjun starfsdags',
defaultMessage: 'Dagsetning',
description: 'Start of employees workday date',
},
time: {
id: 'aosh.wan.application:employee.time',
defaultMessage: 'Tími byrjun starfsdags',
defaultMessage: 'Tími',
description: 'Start of employees workday time',
},
timePlaceholder: {
Expand Down Expand Up @@ -155,5 +155,11 @@ export const employee = {
'Starfsdagur má byrja allt að 36 tímum fyrir slys og að tímasetningu slyss',
description: 'Error message for employee start time',
},
startTimeAlert: {
id: 'aosh.wan.application:employee.startTimeAlert',
defaultMessage:
'Dagsetning og tími þegar starfsmaður mætti til vinnu á slysadegi',
description: 'Error message for employee start time',
},
}),
}

0 comments on commit a2b25ec

Please sign in to comment.