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

[FEAT]: Permissions for File Manager Actions #136

Open
khoshbin opened this issue Jan 16, 2025 · 1 comment
Open

[FEAT]: Permissions for File Manager Actions #136

khoshbin opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@khoshbin
Copy link

Description

I am using your React File Manager component and appreciate its versatility. However, I need to hide specific actions such as Download, Upload, Cut, Copy, Rename, and Delete to create a simpler interface focused only on selecting a single .json file.

Expected Behavior

The ability to configure and hide specific actions in the file manager's UI.
For example, a prop or configuration like:

<FileManager hiddenActions={['download', 'upload', 'cut', 'copy', 'rename', 'delete']} />

This should allow developers to show only the actions they need for their use case.

Current Behavior

The file manager displays all actions (Download, Upload, Cut, Copy, Rename, Delete, etc.) regardless of the use case.

Proposed Solution

Add a prop or configuration to specify which actions to hide.
For example:

<FileManager hiddenActions={['upload', 'delete']} />

When an action is hidden, its corresponding button or UI element should not be rendered.

Use Case

This feature is crucial for scenarios where the file manager is used solely for file selection, and other actions are unnecessary or could confuse end-users.
Additional Context

If there is already a way to hide specific actions, kindly provide documentation or an example.
@Saifullah-dev Saifullah-dev self-assigned this Jan 18, 2025
@Saifullah-dev Saifullah-dev added the enhancement New feature or request label Jan 18, 2025
@Saifullah-dev Saifullah-dev changed the title Feature Request: Option to Hide Actions in the File Manager [FEAT]: Permissions for File Manager Actions Jan 18, 2025
@Saifullah-dev
Copy link
Owner

@khoshbin Thank you for your feedback and for suggesting this feature! The ability to hide specific actions will be included in the next version of the React File Manager. I appreciate your input to help improve the versatility of component!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants