allow reloading recipes
This commit is contained in:
parent
7c6c2fdc85
commit
645292d5a5
5
app.py
5
app.py
|
@ -117,6 +117,11 @@ def next_phase():
|
|||
if done:
|
||||
statemachine.done()
|
||||
|
||||
@socketio.on('reload recipes')
|
||||
def reload_recipes():
|
||||
statemachine.reloadRecipes()
|
||||
updateState()
|
||||
|
||||
def run_recipes():
|
||||
while True:
|
||||
while statemachine.recipe is not None:
|
||||
|
|
|
@ -292,6 +292,8 @@ function render_load_recipe(data) {
|
|||
<p class="card-header-title">
|
||||
Load Recipe
|
||||
</p>
|
||||
<button class="button is-link"
|
||||
onclick="reload_recipes();">Reload config</button>
|
||||
</header>
|
||||
<div class="card-content">
|
||||
<div class="tabs is-centered">
|
||||
|
|
Loading…
Reference in New Issue