Skip to content

Commit

Permalink
If no nodegroup is set don't default to shwoing it being in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Aug 23, 2024
1 parent 11fd3ed commit 62aed85
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 62aed85

Please sign in to comment.