Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

disable move button on multi select when a folder is selected

adilson8c4b29927432
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/SelectionPanel.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/SelectionPanel.tsx
index 00ed09f876..bc15ec0692 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/SelectionPanel.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/SelectionPanel.tsx
@@ -309,8 +309,13 @@ export const SelectionPanel = ({
const hasMovableSelection = selectedKeysCount > 0 || selectedRotationCount > 0;
const shouldShowMove = shouldShowDelete && hasMovableSelection;
- const isMoveDisabled = hasHoneyTokenSelected;
- const moveDisabledReason = hasHoneyTokenSelected ? "Moving honey tokens is not supported" : "";
+ const isMoveDisabled = hasHoneyTokenSelected || areFoldersSelected;
+ let moveDisabledReason = "";
+ if (hasHoneyTokenSelected) {
+ moveDisabledReason = "Moving honey tokens is not supported";
+ } else if (areFoldersSelected) {
+ moveDisabledReason = "Folders cannot be moved via multi-select";
+ }
const isDeleteDisabled = areRotationsSelected || isManagedSecretSelected;
let deleteDisabledReason = "Rotated or honey token secrets cannot be deleted via multi-select";