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

🐛(frontend) the share modal is shown when you don't have the abilities #557

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

Conversation

PanchoutNathan
Copy link
Collaborator

Purpose

Currently, the sharing method is shown even though we do not have the rights. We remove this possibility by adding a button to copy the links

Capture d’écran 2025-01-15 à 16 06 34 Capture d’écran 2025-01-15 à 16 06 50

@PanchoutNathan PanchoutNathan self-assigned this Jan 15, 2025
- Added a new hook `useCopyDocLink` to handle copying document links to
the clipboard with success/error notifications.
- Updated the `DocToolBox`, `DocsGridActions`, and `DocShareModal`
components to utilize the new copy link feature.
- Enhanced tests to verify the functionality of the copy link button in
various scenarios.
- Adjusted visibility checks for sharing options based on user access
rights.
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.

1 participant