Skip to content

[FEAT]: Permissions for File Manager Actions #136

Closed
@khoshbin

Description

@khoshbin

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.

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions