jscheffl commented on code in PR #45958:
URL: https://github.com/apache/airflow/pull/45958#discussion_r1929603457


##########
providers/edge/src/airflow/providers/edge/plugins/templates/edge_worker_hosts.html:
##########
@@ -97,6 +100,25 @@ <h2>Edge Worker Hosts</h2>
                 {% endfor %}
               </ul>
             </td>
+            <td>
+              {%- if host.state == "idle" or host.state == "running" -%}
+                <form action="../edgeworkerhosts/status/maintenance/{{ 
host.worker_name }}/on" method="GET">
+                  <button type="submit" style="padding: 10px 20px; 
background-color: blue; color: white; border: none; border-radius: 5px;">
+                      Enable
+                  </button>
+                </form>
+              {%- elif host.state == "maintenance pending" or host.state == 
"maintenance mode" or host.state == "maintenance request" -%}
+                <form action="../edgeworkerhosts/status/maintenance/{{ 
host.worker_name }}/off" method="GET">
+                  <button type="submit" style="padding: 10px 20px; 
background-color: blue; color: white; border: none; border-radius: 5px;">
+                      Disable

Review Comment:
   I'd call it exit
   ```suggestion
                         Exit
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to