diff --git a/public/intl/messages/en-US.json b/public/intl/messages/en-US.json
index 5fe797d85..3fdffef66 100644
--- a/public/intl/messages/en-US.json
+++ b/public/intl/messages/en-US.json
@@ -255,6 +255,7 @@
"select-date": "Select date",
"select-filter": "Select filter",
"select-role": "Select role",
+ "select-component": "Select component",
"select-website": "Select website",
"session": "Session",
"session-data": "Session data",
@@ -371,6 +372,8 @@
"reset-website": "To reset this website, type {confirmation} in the box below to confirm.",
"reset-website-warning": "All statistics for this website will be deleted, but your settings will remain intact.",
"saved": "Saved.",
+ "select-component-preview": "Select a component to preview",
+ "select-website-first": "Select a website first",
"sever-error": "Server error",
"share-url": "Your website stats are publicly available at the following URL:",
"team-already-member": "You are already a member of the team.",
diff --git a/src/app/(main)/boards/[boardId]/BoardBody.tsx b/src/app/(main)/boards/[boardId]/BoardBody.tsx
index 5e2c32264..e3c363cb3 100644
--- a/src/app/(main)/boards/[boardId]/BoardBody.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardBody.tsx
@@ -103,6 +103,8 @@ export function BoardBody() {
});
};
+ const websiteId = board?.parameters?.websiteId;
+ const canEdit = editing && !!websiteId;
const rows = board?.parameters?.rows ?? [];
const minHeight = (rows?.length || 1) * MAX_ROW_HEIGHT + BUTTON_ROW_HEIGHT;
@@ -121,7 +123,7 @@ export function BoardBody() {
rowId={row.id}
rowIndex={index}
rowCount={rows?.length}
- editing={editing}
+ editing={canEdit}
onRemove={handleRemoveRow}
onMoveUp={handleMoveRowUp}
onMoveDown={handleMoveRowDown}
@@ -131,7 +133,7 @@ export function BoardBody() {
{index < rows?.length - 1 && }
))}
- {editing && (
+ {canEdit && (
diff --git a/src/app/(main)/boards/[boardId]/BoardColumn.tsx b/src/app/(main)/boards/[boardId]/BoardColumn.tsx
index 4cffe00b6..8be9c02da 100644
--- a/src/app/(main)/boards/[boardId]/BoardColumn.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardColumn.tsx
@@ -9,7 +9,7 @@ import {
TooltipTrigger,
} from '@umami/react-zen';
import { useState } from 'react';
-import { useBoard } from '@/components/hooks';
+import { useBoard, useMessages } from '@/components/hooks';
import { Pencil, Plus, X } from '@/components/icons';
import type { BoardComponentConfig } from '@/lib/types';
import { BoardComponentRenderer } from './BoardComponentRenderer';
@@ -32,6 +32,7 @@ export function BoardColumn({
}) {
const [showSelect, setShowSelect] = useState(false);
const { board } = useBoard();
+ const { t, labels } = useMessages();
const websiteId = board?.parameters?.websiteId;
const handleSelect = (config: BoardComponentConfig) => {
@@ -91,7 +92,7 @@ export function BoardColumn({
)}