Skip to content

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

feat(pam): move keyboard shortcut hint inside Run button

bernie-g35c2f169e86a
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
index a1c6c1db53..195aaa7ffa 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
@@ -50,14 +50,15 @@ export function QueryToolbar({
>
<PlayIcon className="size-3" />
{hasSelection ? "Run Selection" : "Run"}
+ {!isRunning && (
+ <span className="opacity-60">{isMac ? "⌘" : "Ctrl"} ↵</span>
+ )}
</Button>
- {isRunning ? (
+ {isRunning && (
<Button size="xs" variant="outline" onClick={onCancel} className="gap-1.5">
<SquareIcon className="size-3 text-red-400" />
Cancel
</Button>
- ) : (
- <span className="text-xs text-mineshaft-500">{isMac ? "⌘" : "Ctrl"}+Enter</span>
)}
{isInTransaction && (
<>