-
Notifications
You must be signed in to change notification settings - Fork 16
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
Global Customizations: Allow to remove an uploaded image #1039
Global Customizations: Allow to remove an uploaded image #1039
Conversation
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.
I like the button switching now just need to connect the pipes.
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.
Logic works great, just one small cosmetic issue.
<Button icon={loading ? 'sync' : 'upload'} onClick={handleButtonClick}> | ||
Upload | ||
</Button> | ||
{fileName ? ( |
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.
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.
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.
Great stuff, thanks @BigRoy !
Description of changes
Toggle the upload component to "Remove" button if it currently contains an uploaded file so that you can remove things.
Technical details
@Innders visually it looks good - but I can't get the clear to actually influence the stored result. So when refreshing you can see it never actually 'cleared' anything.
Fix #1036
Additional context