From e1344fcfa609aa4cc12820f83e1efa9ce244a626 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 14 Apr 2025 13:06:39 -0600 Subject: [PATCH] =?UTF-8?q?ready=20only=20in=20datasets=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DatasetIndividualThreeDotMenu.tsx | 4 +- .../[datasetId]/editor/EditorContent.tsx | 3 +- .../[datasetId]/editor/MetadataContainer.tsx | 9 ++-- .../datasets/[datasetId]/page.tsx | 19 +++----- .../AppVerticalCodeSplitter.tsx | 3 ++ .../AppVerticalCodeSplitter/SQLContainer.tsx | 43 ++++++++++++------- 6 files changed, 46 insertions(+), 35 deletions(-) diff --git a/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetsIndividualHeader/DatasetIndividualThreeDotMenu.tsx b/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetsIndividualHeader/DatasetIndividualThreeDotMenu.tsx index 291bc8fc6..33cf4efeb 100644 --- a/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetsIndividualHeader/DatasetIndividualThreeDotMenu.tsx +++ b/web/src/app/app/(primary_layout)/datasets/[datasetId]/_DatasetsLayout/DatasetsIndividualHeader/DatasetIndividualThreeDotMenu.tsx @@ -4,7 +4,7 @@ import { BusterRoutes } from '@/routes'; import { Dropdown, DropdownItems } from '@/components/ui/dropdown'; import { Button } from '@/components/ui/buttons'; import React, { useMemo } from 'react'; -import { Dots, DotsVertical, Trash } from '@/components/ui/icons'; +import { Dots, Trash } from '@/components/ui/icons'; export const DatasetIndividualThreeDotMenu: React.FC<{ datasetId?: string; @@ -31,7 +31,7 @@ export const DatasetIndividualThreeDotMenu: React.FC<{ }, [datasetId, onDeleteDataset]); return ( - + )} - + {!readOnly && ( + + )} ); @@ -87,6 +99,7 @@ export const SQLContainer: React.FC<{ onChange={setDatasetSQL} onMetaEnter={onRunQueryPreflight} variant={null} + readOnly={readOnly} /> {error && }