-
Notifications
You must be signed in to change notification settings - Fork 326
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add refresh button to ResourceLocator field-type #5551
Add refresh button to ResourceLocator field-type #5551
Conversation
b317b3c
to
ca1c993
Compare
src/Sulu/Bundle/AdminBundle/Resources/js/containers/Form/fields/ResourceLocator.js
Outdated
Show resolved
Hide resolved
src/Sulu/Bundle/AdminBundle/Resources/js/containers/Form/fields/ResourceLocator.js
Outdated
Show resolved
Hide resolved
I have just tested it, and to me it feels a little bit weird from a user perspective... Let's assume we have just the title and the URL field. The URL field uses the value from the title field to generate the URL. I've realized two weird behaviors:
The first one requires an additional click, which should not be necessary IMO, and the second one might be confusing to the user, because nothing is happening after the button click. That made me wonder: Wouldn't it make sense to set the |
Yes, I think the behaviour is not perfect too. I think adding a As far as I see, the Furthermore, the One solution for the second problem would be adding a |
d630bef
to
08a1c09
Compare
|
2002300
to
222184d
Compare
d3985cc
to
b6a6fa4
Compare
b6a6fa4
to
ac7fe03
Compare
I do not understand why |
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.
A error happens on the homepage when the partsChangeDisposer
is not set.
src/Sulu/Bundle/AdminBundle/Resources/js/containers/Form/fields/ResourceLocator.js
Outdated
Show resolved
Hide resolved
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.
Works now as expected. Thx for adding the unmount test 馃憤
62ce58b
to
78ac91e
Compare
What's in this PR?
This PR adds a Refresh URL button to the
ResourceLocator
field-type. The button allows to regenerate the URL based on the current values of the Form.Why?
Because it is frequently requested feature 馃檪
See #4221 and #5340.