-
Notifications
You must be signed in to change notification settings - Fork 109
fix: only show delete image button when editing #2359
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
Conversation
81f45db to
7d92f58
Compare
|
/compile |
src/tests/nodes/ImageView.spec.js
Outdated
| const factory = attrs => { | ||
| const propsData = { | ||
| extension: { options: {currentDirectory: '/current'} }, | ||
| editor: { isEditable: true }, |
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.
Do we have a test case for when this value is false?
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.
We have now. :)
b08ea11 to
4564b00
Compare
4c6c536 to
9c8026f
Compare
|
/compile amend / |
9c8026f to
3b22370
Compare
Also test for it being shown and triggering the deleteNode when editing. Signed-off-by: Max <[email protected]>
3b22370 to
158ab34
Compare
|
/compile |
Signed-off-by: nextcloud-command <[email protected]>
julien-nc
left a comment
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.
Fine by me!
|
/backport to stable24 |
|
The backport to stable24 failed. Please do this backport manually. |
Signed-off-by: Max [email protected]
Summary
We used to show the delete image button even in read only views - such as a public share without editing permission.
Only show it when people are actually allowed to remove the image.