Skip to content

Commit 375048a

Browse files
committed
Include sync in config change
1 parent e2d5d39 commit 375048a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/extension/ui/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function App() {
125125
</Typography>
126126
</DialogTitle>
127127
<DialogContent>
128-
<PromptConfig client={client} catalogItem={configuringItem!} registryItem={registryItems[configuringItem!.name]} onRegistryChange={loadRegistry} />
128+
<PromptConfig client={client} catalogItem={configuringItem!} registryItem={registryItems[configuringItem!.name]} onRegistryChange={startSyncing} />
129129
</DialogContent>
130130
</Dialog>}
131131
<Stack direction="column" spacing={1} justifyContent='center' alignItems='center'>

src/extension/ui/src/components/PromptConfig.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const PromptConfig = ({
141141
}]
142142
})
143143
await tryRunImageSync(client, ['--rm', '-v', 'docker-prompts:/docker-prompts', '--workdir', '/docker-prompts', 'vonwig/function_write_files:latest', `'${payload}'`])
144-
onRegistryChange();
144+
setTimeout(onRegistryChange, 500)
145145
}
146146
catch (error) {
147147
client.desktopUI.toast.error('Failed to update config: ' + error);

0 commit comments

Comments
 (0)