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

fix: Hide empty inline menu entry in grid view #586

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Mar 13, 2025

The grid view currently does not support inline actions and renders them in the menu. This is a quick fix to address nextcloud/server#51452 to align with our other quick fix in https://github.com/nextcloud/files_lock/blob/main/src/main.ts#L98-L100

@juliusknorr juliusknorr force-pushed the fix/inline-grid-view branch from 4892d69 to d84fe76 Compare March 13, 2025 09:42
@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Mar 13, 2025
@juliusknorr
Copy link
Member Author

/backport to stable31

@juliusknorr
Copy link
Member Author

/backport to stable30

@juliusknorr
Copy link
Member Author

/backport to stable29

@juliusknorr
Copy link
Member Author

I'll add a test case as well

@juliusknorr juliusknorr requested a review from susnux March 13, 2025 10:01
@susnux
Copy link
Contributor

susnux commented Mar 13, 2025

@juliusknorr should we not just show some meaningful information?
We could do it like the share-status action:
Provide a title so that if we are in grid view we show "File is locked" if the file is locked.

@juliusknorr
Copy link
Member Author

As mentioned in the other ticket we have another action for the menu entry:

https://github.com/nextcloud/files_lock/blob/fix/inline-grid-view/src/main.ts#L113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants