Skip to content

Commit 1ecfb89

Browse files
committed
Minor UI Improvement Recipe Mode
On shutdown, in recipe mode, change the 'next step' button on the WebUI to be a 'stop' icon.
1 parent cc51563 commit 1ecfb89

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

static/js/control_panel.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ function update_recipe_mode() {
140140
} else if(cpMode == 'Shutdown') {
141141
$("#cp_recipe_mode_btn").hide();
142142
document.getElementById("cp_recipe_shutdown_btn").className = "btn btn-info text-white";
143+
// Change the next step button to a 'stop' icon
144+
$("#cp_recipe_next_step_btn").html('<i class="fas fa-stop"></i>');
143145
};
144146
$("#cp_recipe_mode_btn").html(cpRecipeModeIcon);
145147
cpRecipeLastStep = cpRecipeStep;
@@ -148,10 +150,10 @@ function update_recipe_mode() {
148150

149151
function update_recipe_pause() {
150152
if (cpRecipePause && cpRecipeTriggered) {
151-
$("#cp_recipe_next_step_btn").html('<i class="fas fa-step-forward"></i>');
153+
//$("#cp_recipe_next_step_btn").html('<i class="fas fa-step-forward"></i>');
152154
document.getElementById("cp_recipe_next_step_btn").className = "btn btn-info text-white glowbutton";
153155
} else {
154-
$("#cp_recipe_next_step_btn").html('<i class="fas fa-step-forward"></i>');
156+
//$("#cp_recipe_next_step_btn").html('<i class="fas fa-step-forward"></i>');
155157
document.getElementById("cp_recipe_next_step_btn").className = "btn btn-info text-white";
156158
};
157159
cpLastRecipePause = cpRecipePause;

0 commit comments

Comments
 (0)