Skip to content

Commit

Permalink
Merge pull request #416 from stakwork/swarm-version-superadmin
Browse files Browse the repository at this point in the history
chore[superadmin-frontend]: show swarm version
  • Loading branch information
Evanfeenstra authored Nov 26, 2024
2 parents 52cb8cf + 4cbdc34 commit ff32f3a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/bin/super/superapp/src/ViewNodes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
let open_change_swarm_password = false;
let new_password = "";
let current_password = "";
let swarm_version = "";
async function setupNodes() {
const result = await get_child_swarm_config({ host: $selectedNode });
Expand Down Expand Up @@ -230,6 +231,9 @@
version_object[response.data.data[i].name] =
response.data.data[i].version;
}
if (version_object["swarm"]) {
swarm_version = version_object["swarm"];
}
let tempSortedNodes = [];
Expand Down Expand Up @@ -463,7 +467,10 @@
<div class="back" on:click={back}>
<ArrowLeft size={32} />
</div>
<h2 class="node_host">{$selectedNode}</h2>
<div class="host_container">
<h2 class="node_host">{$selectedNode}</h2>
<p class="swarm_version">{swarm_version}</p>
</div>
{#if show_notification}
<div class="success_toast_container">
<ToastNotification
Expand Down Expand Up @@ -685,4 +692,14 @@
.input_container {
margin-bottom: 1rem;
}
.host_container {
display: flex;
align-items: center;
gap: 1rem;
}
.swarm_version {
color: rgba(255, 255, 255, 0.613);
}
</style>

0 comments on commit ff32f3a

Please sign in to comment.