-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: require confirmation on attachment removal and when cancelling edit #2875
Conversation
API branch is deployed to platta: https://helsinkilisa-pr2875.api.dev.hel.ninja/healthz πππ |
APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://helsinkilisa-ui-pr2875.dev.hel.ninja ππππ |
a5307be
to
cf3a478
Compare
API branch is deployed to platta: https://tet-pr2875.api.dev.hel.ninja/healthz πππ |
API branch is deployed to platta: https://kesaseteli-pr2875.api.dev.hel.ninja/healthz πππ |
API branch is deployed to platta: https://helsinkilisa-pr2875.api.dev.hel.ninja/healthz πππ |
ADMIN branch is deployed to platta: https://tet-admin-ui-pr2875.dev.hel.ninja πππ |
EMPLOYER branch is deployed to platta: https://kesaseteli-employer-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://tet-admin-ui-pr2875.dev.hel.ninja ππππ |
TestCafe result is success for https://kesaseteli-employer-pr2875.dev.hel.ninja ππππ |
APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://helsinkilisa-ui-pr2875.dev.hel.ninja ππππ |
HANDLER branch is deployed to platta: https://kesaseteli-handler-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://kesaseteli-handler-pr2875.dev.hel.ninja ππππ |
YOUTH branch is deployed to platta: https://tet-youth-ui-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://tet-youth-ui-pr2875.dev.hel.ninja ππππ |
HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://helsinkilisa-ui-handler-pr2875.dev.hel.ninja ππππ |
YOUTH branch is deployed to platta: https://kesaseteli-youth-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://kesaseteli-youth-pr2875.dev.hel.ninja ππππ |
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.
One typing mishap aside, seems fine.
@@ -14,13 +14,14 @@ type ExtendedComponentProps = { | |||
attachments: []; | |||
isRemoving: boolean; | |||
isUploading: boolean; | |||
handleRemove: (attachmentId: string) => void; | |||
handleRemove: (attachmentId: string, name: string) => void; |
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.
The signature of the actual returned function didn't change; there's no name parameter there. The name is resolved inside that function by using the ID alone.
cf3a478
to
9118842
Compare
|
|
|
|
|
|
|
API branch is deployed to platta: https://kesaseteli-pr2875.api.dev.hel.ninja/healthz πππ |
|
|
|
|
|
API branch is deployed to platta: https://tet-pr2875.api.dev.hel.ninja/healthz πππ |
API branch is deployed to platta: https://helsinkilisa-pr2875.api.dev.hel.ninja/healthz πππ |
EMPLOYER branch is deployed to platta: https://kesaseteli-employer-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://kesaseteli-employer-pr2875.dev.hel.ninja ππππ |
ADMIN branch is deployed to platta: https://tet-admin-ui-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://tet-admin-ui-pr2875.dev.hel.ninja ππππ |
APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://helsinkilisa-ui-pr2875.dev.hel.ninja ππππ |
HANDLER branch is deployed to platta: https://kesaseteli-handler-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://kesaseteli-handler-pr2875.dev.hel.ninja ππππ |
HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2875.dev.hel.ninja πππ |
YOUTH branch is deployed to platta: https://tet-youth-ui-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://tet-youth-ui-pr2875.dev.hel.ninja ππππ |
TestCafe result is success for https://helsinkilisa-ui-handler-pr2875.dev.hel.ninja ππππ |
YOUTH branch is deployed to platta: https://kesaseteli-youth-pr2875.dev.hel.ninja πππ |
TestCafe result is success for https://kesaseteli-youth-pr2875.dev.hel.ninja ππππ |
Description β¨
Add a couple of missing nags with
window.confirm()
. It's lacking the cool HDS modal styles but at least it's working πAlso set default paper application date if it's untouched.