-
Notifications
You must be signed in to change notification settings - Fork 0
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
Submit timesheet rework #4
base: development
Are you sure you want to change the base?
Conversation
app/components/alert.gjs
Outdated
@@ -95,6 +111,12 @@ const IconSvg = <template> | |||
d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z' | |||
clip-rule='evenodd' | |||
></path> | |||
{{else if (eq @skin 'info')}} | |||
<path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use icons from bootstrap-icons with svg-jar
. Makes it more consistent/readable/maintainable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 6ac8db0
app/components/checkbox.gjs
Outdated
|
||
export default class CheckboxComponent extends Component { | ||
|
||
onChange = (event) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use active naming for action handler. E.g. change()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 5362e77
app/components/timesheet-actions.js
Outdated
}); | ||
@action | ||
clickAbsence(checked) { | ||
if (!checked) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nickpicking, but why checking the negative case while you have similar if-else branches (and in clickTimesheet
the check is reversed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 61a0b6c
The timesheet submit buttons were causing issues because they cannot be reverted. This brings back the checkboxes instead.