Skip to content

Commit

Permalink
Merge pull request #144 from CameronRP/update-go-api
Browse files Browse the repository at this point in the history
If no nodegroup is set don't default to shwoing it being in dev
  • Loading branch information
CameronRP authored Aug 23, 2024
2 parents 11fd3ed + 62aed85 commit 0deecda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions html/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ <h3>Device<br></h3>
<div class="form-group">
<label for="environment-select">Select Environment:</label>
<select class="form-control" id="environment-select">
<option value="">Select an environment</option>
<option value="tc2-dev">tc2-dev</option>
<option value="tc2-test">tc2-test</option>
<option value="tc2-prod">tc2-prod</option>
Expand Down
4 changes: 4 additions & 0 deletions static/js/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ function getEnvironmentState() {
}

async function setEnvironment() {
if (selectedEnvironment == "") {
alert('Please select an environment');
return;
}
$("#set-environment-button").attr("disabled", true);
$("#set-environment-button").html("Setting Environment");
const selectedEnvironment = document.getElementById('environment-select').value;
Expand Down

0 comments on commit 0deecda

Please sign in to comment.