Skip to content

Commit d796409

Browse files
committed
chore: add lock icon
1 parent fb0d28e commit d796409

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

frontend/src/components/views/SourceDetailView.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useEffect, useState } from 'react';
22
import { useParams, Navigate } from 'react-router-dom';
3+
import { Lock } from 'lucide-react';
34
import { fetchSource } from '../../api/sources';
45
import { ApiError } from '../../api/errors';
56
import type { DataSource } from '../../types/datasource';
@@ -190,8 +191,13 @@ export default function SourceDetailView() {
190191
<div className="bg-muted/30 rounded-lg p-4 space-y-3">
191192
<div>
192193
<div className="flex items-baseline gap-2">
193-
<div className="text-sm font-semibold text-foreground font-mono">
194-
{tool.name}
194+
<div className="flex items-center gap-1.5">
195+
<div className="text-sm font-semibold text-foreground font-mono">
196+
{tool.name}
197+
</div>
198+
{tool.readonly && (
199+
<Lock className="w-3.5 h-3.5 text-muted-foreground" />
200+
)}
195201
</div>
196202
<div className="text-xs text-muted-foreground">
197203
({tool.parameters.length} {tool.parameters.length === 1 ? 'parameter' : 'parameters'})

0 commit comments

Comments
 (0)