fix: add reminder to restart if changing integration mode

This commit is contained in:
Lance Edgar 2026-02-27 13:17:52 -06:00
parent 7d5ff47e8e
commit 1c0286eda0

View file

@ -37,13 +37,24 @@
</b-field> </b-field>
<b-field label="farmOS Integration Mode"> <b-field label="farmOS Integration Mode">
<b-select name="${app.appname}.farmos_integration_mode" <div style="display: flex; gap: 0.5rem; align-items: center;">
v-model="simpleSettings['${app.appname}.farmos_integration_mode']" <b-select name="${app.appname}.farmos_integration_mode"
@input="settingsNeedSaved = true"> v-model="simpleSettings['${app.appname}.farmos_integration_mode']"
% for value, label in enum.FARMOS_INTEGRATION_MODE.items(): @input="settingsNeedSaved = true">
<option value="${value}">${label}</option> % for value, label in enum.FARMOS_INTEGRATION_MODE.items():
% endfor <option value="${value}">${label}</option>
</b-select> % endfor
</b-select>
<${b}-tooltip position="${'right' if request.use_oruga else 'is-right'}">
<b-icon pack="fas" icon="info-circle" type="is-warning" />
<template #content>
<p class="block">
<span class="has-text-weight-bold">RESTART IS REQUIRED</span>
if you change the integration mode.
</p>
</template>
</${b}-tooltip>
</div>
</b-field> </b-field>
<b-checkbox name="${app.appname}.farmos_style_grid_links" <b-checkbox name="${app.appname}.farmos_style_grid_links"