Skip to content

Conversation

@max-nextcloud
Copy link
Collaborator

Signed-off-by: Max [email protected]

  • Target version: master

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.

@max-nextcloud max-nextcloud force-pushed the fix/hide-image-trash-in-readonly branch from 81f45db to 7d92f58 Compare May 4, 2022 09:12
@max-nextcloud
Copy link
Collaborator Author

/compile

const factory = attrs => {
const propsData = {
extension: { options: {currentDirectory: '/current'} },
editor: { isEditable: true },
Copy link
Member

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have now. :)

@max-nextcloud max-nextcloud force-pushed the fix/hide-image-trash-in-readonly branch from b08ea11 to 4564b00 Compare May 10, 2022 13:29
@max-nextcloud max-nextcloud requested a review from vinicius73 May 10, 2022 13:30
@max-nextcloud max-nextcloud force-pushed the fix/hide-image-trash-in-readonly branch 2 times, most recently from 4c6c536 to 9c8026f Compare May 10, 2022 13:48
@max-nextcloud
Copy link
Collaborator Author

/compile amend /

@nextcloud-command nextcloud-command force-pushed the fix/hide-image-trash-in-readonly branch from 9c8026f to 3b22370 Compare May 10, 2022 13:53
Also test for it being shown and triggering the deleteNode
when editing.

Signed-off-by: Max <[email protected]>
@max-nextcloud max-nextcloud force-pushed the fix/hide-image-trash-in-readonly branch from 3b22370 to 158ab34 Compare May 11, 2022 07:03
@max-nextcloud
Copy link
Collaborator Author

/compile

Signed-off-by: nextcloud-command <[email protected]>
Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Fine by me!

@max-nextcloud max-nextcloud merged commit 1a20289 into master May 11, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/hide-image-trash-in-readonly branch May 11, 2022 10:55
@max-nextcloud
Copy link
Collaborator Author

/backport to stable24

@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants