Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: hide row-selection panel in read mode (#5016)

Myles Scolnick6ace1e85715b
diff --git a/frontend/src/components/data-table/TableActions.tsx b/frontend/src/components/data-table/TableActions.tsx
index e907a456c7..0f48dafc22 100644
--- a/frontend/src/components/data-table/TableActions.tsx
+++ b/frontend/src/components/data-table/TableActions.tsx
@@ -12,6 +12,7 @@ import type { DataTableSelection } from "./types";
import type { GetRowIds } from "@/plugins/impl/DataTablePlugin";
import { toast } from "../ui/use-toast";
import { cn } from "@/utils/cn";
+import { initialMode } from "@/core/mode";
interface TableActionsProps<TData> {
enableSearch: boolean;
@@ -118,7 +119,8 @@ export const TableActions = <TData,>({
</Button>
</Tooltip>
)}
- {toggleRowViewerPanel && (
+ {/* Disable in read mode, for now, until the panel is shown */}
+ {toggleRowViewerPanel && initialMode !== "read" && (
<Tooltip content="Toggle row viewer">
<Button variant="text" size="xs" onClick={toggleRowViewerPanel}>
<PanelRightIcon