Skip to content

Commit d6f9c16

Browse files
committed
Shorter description on Enable tooltip
Signed-off-by: Trung Nguyen <[email protected]>
1 parent 5ee8ef1 commit d6f9c16

File tree

1 file changed

+6
-3
lines changed
  • src/extension/ui/src/components/tile

1 file changed

+6
-3
lines changed

src/extension/ui/src/components/tile/Top.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Avatar, CardHeader, Switch, Tooltip, Typography } from '@mui/material';
22

33
import { CatalogItemRichened } from '../../types/catalog';
44
import { formatName } from '../../formatName';
5+
import { format } from 'path';
56

67
type TopProps = {
78
onToggleRegister: (checked: boolean) => void;
@@ -34,8 +35,8 @@ export default function Top({ item, onToggleRegister }: TopProps) {
3435
<Tooltip
3536
title={
3637
item.registered
37-
? 'Unregistering this server will hide it from MCP clients.'
38-
: 'Registering this server will expose it to MCP clients.'
38+
? `Disable ${formatName(item.name)}`
39+
: `Enable ${formatName(item.name)}`
3940
}
4041
>
4142
<Switch
@@ -48,7 +49,9 @@ export default function Top({ item, onToggleRegister }: TopProps) {
4849
/>
4950
</Tooltip>
5051
) : (
51-
<Tooltip title="This server needs configuration before it can be used.">
52+
<Tooltip
53+
title={`Enabling ${formatName(item.name)} requires configuration`}
54+
>
5255
<span>
5356
<Switch checked={false} disabled />
5457
</span>

0 commit comments

Comments
 (0)