Skip to content

Commit

Permalink
Fix virtualization message when everything is ok (#468)
Browse files Browse the repository at this point in the history
fix: Virtualization msg when everything is ok
  • Loading branch information
BjrInt authored Nov 14, 2023
1 parent 4cb2ccc commit 21183b4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/aleph/vm/orchestrator/views/static/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ async function fetchApiStatus () {
if(q.ok){
res.status = "working properly ✅";
}
switch(Number(q.status)){
case 503:
res.status = "not working properly ❌";
res.details = await q.json();
case 500:
res.status = "❌ Failed";
default:
res.status = q.status;
else {
switch(Number(q.status)){
case 503:
res.status = "not working properly ❌";
res.details = await q.json();
case 500:
res.status = "❌ Failed";
default:
res.status = q.status;
}
}

return res;
Expand Down

0 comments on commit 21183b4

Please sign in to comment.