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

[form-builder] Hide image edit button if no fields and no asset #1284

Merged
merged 1 commit into from Apr 30, 2019

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Apr 29, 2019

If you have an image field where all the fields are "hoisted"/"highlighted" to always be shown and the hotspot tool is enabled, the edit button is shown. If however the field does not have any asset, the dialog shows nothing but a header.

With this PR, we only show the edit button if the image has non-hoisted fields, OR the image field both has an asset and has hotspot enabled.

@rexxars rexxars requested a review from bjoerge April 29, 2019 16:16
@rexxars rexxars force-pushed the image-hide-edit-when-no-asset branch from 4f104da to 26b065a Compare April 29, 2019 16:17
@rexxars rexxars changed the title [form-builder] Hide edit button if no fields and no asset [form-builder] Hide image edit button if no fields and no asset Apr 29, 2019
@rexxars rexxars removed the request for review from bjoerge April 30, 2019 09:25
@rexxars rexxars merged commit 802e5b2 into next Apr 30, 2019
@rexxars rexxars deleted the image-hide-edit-when-no-asset branch April 30, 2019 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants