Skip to content

Commit ba33b86

Browse files
author
Giulio Savini
committed
fix: redeploy swarm stack when saving edits
clicking save on a swarm stack in edit mode was only persisting the source files on disk — the running services were never updated with the new config. wire the save button to deployStack so changes actually land in swarm instead of silently getting ignored. fixes #2361
1 parent 70d7a69 commit ba33b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/routes/(app)/swarm/stacks/new/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
const { name, composeContent, envContent } = validated;
104104
105105
handleApiResultWithCallbacks({
106-
result: await tryCatch(swarmService.updateStackSource(name, { composeContent, envContent })),
106+
result: await tryCatch(swarmService.deployStack({ name, composeContent, envContent })),
107107
message: m.common_update_failed({ resource: `${m.swarm_stack()} "${name}"` }),
108108
setLoadingState: (value) => (saving = value),
109109
onSuccess: async () => {

0 commit comments

Comments
 (0)