Skip to content

Commit 514c6a2

Browse files
committed
chore: add readonly lock to the sidebar
1 parent 5965b7d commit 514c6a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/components/Sidebar/Sidebar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Link, useParams } from 'react-router-dom';
22
import Logo from './Logo';
33
import { cn } from '../../lib/utils';
44
import type { DataSource } from '../../types/datasource';
5+
import LockIcon from '../icons/LockIcon';
56

67
interface SidebarProps {
78
sources: DataSource[];
@@ -49,6 +50,9 @@ export default function Sidebar({ sources, isLoading }: SidebarProps) {
4950
)}
5051
>
5152
<span className="truncate font-mono text-xs">{tool.name}</span>
53+
{tool.readonly && (
54+
<LockIcon className="w-3 h-3 ml-auto flex-shrink-0" />
55+
)}
5256
</Link>
5357
))}
5458
</div>

0 commit comments

Comments
 (0)