File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
frontend/src/components/views Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11import { useEffect , useState } from 'react' ;
22import { useParams , Navigate } from 'react-router-dom' ;
3+ import { Lock } from 'lucide-react' ;
34import { fetchSource } from '../../api/sources' ;
45import { ApiError } from '../../api/errors' ;
56import 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' } )
You can’t perform that action at this time.
0 commit comments