Skip to content
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

Conversation

BigRoy
Copy link
Contributor

@BigRoy BigRoy commented Feb 20, 2025

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 persisting removal.

Fix #1036

Additional context

image
image

Sorry, something went wrong.

@BigRoy BigRoy added the type: enhancement Improvement of existing functionality or minor addition label Feb 20, 2025
@BigRoy BigRoy requested a review from Innders February 20, 2025 23:26
@BigRoy BigRoy self-assigned this Feb 20, 2025
Copy link
Member

@Innders Innders left a 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.

@BigRoy BigRoy requested a review from Innders February 21, 2025 22:49
@BigRoy BigRoy marked this pull request as ready for review February 21, 2025 22:51
Copy link
Member

@Innders Innders left a 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 ? (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we please have a consistent width of the buttons. I would go for 100px.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this fine @Innders ? b67ae27

image

@BigRoy BigRoy requested a review from Innders February 24, 2025 12:55
Copy link
Member

@Innders Innders left a 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 !

@Innders Innders merged commit b4c4739 into ynput:develop Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global Customizations: Allow to remove an uploaded background image and studio logo
2 participants