diff --git a/front/pages/w/[wId]/builder/data-sources/[name]/databases/upsert.tsx b/front/pages/w/[wId]/builder/data-sources/[name]/databases/upsert.tsx index 18fe95bcb295..4d40f587ae45 100644 --- a/front/pages/w/[wId]/builder/data-sources/[name]/databases/upsert.tsx +++ b/front/pages/w/[wId]/builder/data-sources/[name]/databases/upsert.tsx @@ -20,6 +20,7 @@ import { SendNotificationsContext } from "@app/components/sparkle/Notification"; import { getDataSource } from "@app/lib/api/data_sources"; import { Authenticator, getSession, getUserFromSession } from "@app/lib/auth"; import { handleFileUploadToText } from "@app/lib/client/handle_file_upload"; +import { classNames } from "@app/lib/utils"; const { GA_TRACKING_ID = "" } = process.env; @@ -71,7 +72,7 @@ export const getServerSideProps: GetServerSideProps<{ }; }; -export default function DataSourceUpsert({ +export default function DatabaseUpsert({ user, owner, subscription, @@ -242,12 +243,12 @@ export default function DataSourceUpsert({
setDatabaseName(v)} @@ -264,12 +265,12 @@ export default function DataSourceUpsert({
setTableName(v)} @@ -286,15 +287,23 @@ export default function DataSourceUpsert({
- setTableDescription(v)} + onChange={(e) => setTableDescription(e.target.value)} + className={classNames( + "font-mono text-normal block w-full min-w-0 flex-1 rounded-md", + "border-structure-200 bg-structure-50", + readOnly + ? "focus:border-gray-300 focus:ring-0" + : "focus:border-action-300 focus:ring-action-300" + )} />
@@ -304,7 +313,7 @@ export default function DataSourceUpsert({ <>