Skip to content

Commit 3d27f8f

Browse files
authored
Merge pull request #41 from docker/cm/0.1.3
Modal changes
2 parents c3484bb + c0d1a34 commit 3d27f8f

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/extension/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE?=docker/labs-ai-tools-for-devs
2-
TAG?=0.1.1
2+
TAG?=0.1.2
33

44
BUILDER=buildx-multi-arch
55

src/extension/ui/src/components/ClaudeConfigSyncStatus.tsx

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { v1 } from "@docker/extension-api-client-types";
2-
import { Badge, Button, Dialog, DialogContent, DialogContentText, DialogTitle, Stack, Typography } from "@mui/material";
2+
import { Badge, Button, Checkbox, Dialog, DialogContent, DialogContentText, DialogTitle, FormControlLabel, Stack, Typography } from "@mui/material";
33
import { useEffect, useState } from "react";
44
import { writeFilesToHost } from "../FileWatcher";
55
import { trackEvent } from "../Usage";
@@ -146,22 +146,19 @@ export const ClaudeConfigSyncStatus = ({ client, setHasConfig }: { client: v1.Do
146146
</DialogContent>
147147
</Dialog >
148148

149-
{/* Keep this closed for now. */}
150-
<Dialog open={showRestartModal && false} onClose={() => setShowRestartModal(false)} >
151-
<DialogTitle>Restart Claude Desktop</DialogTitle>
149+
<Dialog open={showRestartModal} onClose={() => setShowRestartModal(false)} >
150+
<DialogTitle>Config Changes Applied</DialogTitle>
152151
<DialogContent sx={{ padding: 5, mt: 2 }}>
153152
<Stack direction="column" spacing={3}>
154153
<Typography>
155-
You must manually restart Claude Desktop to apply changes to the config.
154+
Use the keybind {client.host.platform === 'win32' ? 'Ctrl' : '⌘'} + R to refresh MCP servers in Claude Desktop.
156155
</Typography>
157-
<Button onClick={() => {
158-
setShowRestartModal(false)
159-
}}>Close</Button>
156+
<FormControlLabel control={<Checkbox defaultChecked={getNeverShowAgain()} onChange={(e) => setNeverShowAgain(e.target.checked)} />} label="Don't show this again" />
157+
160158

161159
<Button onClick={() => {
162160
setShowRestartModal(false)
163-
setNeverShowAgain(true)
164-
}}>Never show this again</Button>
161+
}}>Close</Button>
165162
</Stack>
166163
</DialogContent>
167164
</Dialog >

0 commit comments

Comments
 (0)