Skip to content

Commit

Permalink
Merge pull request #417 from stakwork/fix/update
Browse files Browse the repository at this point in the history
fix: show new image version after updating an image
  • Loading branch information
tobi-bams authored Nov 26, 2024
2 parents ff32f3a + 5f17a77 commit c68547e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Dashboard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
on:start_message={removeStopClass}
/>

<NodeUpdate />
<NodeUpdate {updateBody} />

<RestartNode />
{/if}
Expand Down
2 changes: 2 additions & 0 deletions app/src/nodes/NodeUpdate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
import { getImageVersion } from "../helpers/swarm";
let updating = false;
export let updateBody = () => {};
async function upgradeContainer() {
let name = $selectedNode.name;
if (!name) return;
updating = true;
await api.swarm.update_node(name);
await getImageVersion(stack, selectedNode);
updateBody();
updating = false;
}
</script>
Expand Down

0 comments on commit c68547e

Please sign in to comment.