mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
[Build] Disable unneeded 'page will reload' messages
This commit is contained in:
@@ -189,7 +189,7 @@ boolean Plugin_046(uint8_t function, struct EventStruct *event, String& string)
|
||||
FormSelectorOptions selector(NR_ELEMENTS(options), options);
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Plugin function"), F("p046"), choice);
|
||||
addFormNote(F("Changing the function will reload this page."));
|
||||
// addFormNote(F("Changing the function will reload this page."));
|
||||
}
|
||||
|
||||
if (choice == 0) {
|
||||
|
||||
@@ -170,7 +170,7 @@ boolean Plugin_047(uint8_t function, struct EventStruct *event, String& string)
|
||||
selector.default_index = static_cast<int>(P047_MODEL_CATNIP);
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Sensor model"), F("model"), P047_MODEL);
|
||||
addFormNote(F("Changing the Sensor model will reload the page."));
|
||||
// addFormNote(F("Changing the Sensor model will reload the page."));
|
||||
}
|
||||
|
||||
if ((P047_MODEL_CATNIP == static_cast<P047_SensorModels>(P047_MODEL))
|
||||
|
||||
+1
-1
@@ -155,7 +155,7 @@ boolean Plugin_105(uint8_t function, struct EventStruct *event, String& string)
|
||||
FormSelectorOptions selector(optionCount, options, indices);
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Sensor model"), F("ahttype"), P105_AHT_TYPE);
|
||||
addFormNote(F("Changing Sensor model will reload the page."));
|
||||
// addFormNote(F("Changing Sensor model will reload the page."));
|
||||
|
||||
if (static_cast<int>(AHTx_device_type::AHT10_DEVICE) == P105_AHT_TYPE) {
|
||||
addFormCheckBox(F("AHT10 Alternative initialization"), F("altinit"), P105_ALT_INIT);
|
||||
|
||||
@@ -187,7 +187,7 @@ boolean Plugin_129(uint8_t function, struct EventStruct *event, String& string)
|
||||
F("Number of chips (Q7 → DS)"), F("chipcnt"), P129_CONFIG_CHIP_COUNT);
|
||||
addUnit(concat(F("Daisychained 1.."), P129_MAX_CHIP_COUNT));
|
||||
# ifndef LIMIT_BUILD_SIZE
|
||||
addFormNote(F("Changing the number of chips will reload the page and update the Event configuration."));
|
||||
// addFormNote(F("Changing the number of chips will reload the page and update the Event configuration."));
|
||||
# endif // ifndef LIMIT_BUILD_SIZE
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ boolean Plugin_135(uint8_t function, struct EventStruct *event, String& string)
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Sensor model"), F("ptype"), P135_SENSOR_TYPE);
|
||||
# ifndef LIMIT_BUILD_SIZE
|
||||
addFormNote(F("Page will reload on change."));
|
||||
// addFormNote(F("Page will reload on change."));
|
||||
# endif // ifndef LIMIT_BUILD_SIZE
|
||||
}
|
||||
|
||||
|
||||
@@ -207,9 +207,9 @@ boolean Plugin_137(uint8_t function, struct EventStruct *event, String& string)
|
||||
selector.reloadonchange = !Settings.isPowerManagerTask(event->TaskIndex);
|
||||
selector.addFormSelector(F("Predefined device configuration"), F("predef"), 0);
|
||||
|
||||
if (!Settings.isPowerManagerTask(event->TaskIndex)) {
|
||||
addFormNote(F("Page will reload when selection is changed."));
|
||||
}
|
||||
// if (!Settings.isPowerManagerTask(event->TaskIndex)) {
|
||||
// addFormNote(F("Page will reload when selection is changed."));
|
||||
// }
|
||||
|
||||
const P137_PredefinedDevices_e current_ = static_cast<P137_PredefinedDevices_e>(P137_CURRENT_PREDEFINED);
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ boolean Plugin_143(uint8_t function, struct EventStruct *event, String& string)
|
||||
FormSelectorOptions selector(optionCount, selectModeOptions, selectModeValues);
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Encoder type"), F("pdevice"), P143_ENCODER_TYPE);
|
||||
addFormNote(F("Changing the Encoder type will reload the page and reset Encoder specific settings to default!"));
|
||||
// addFormNote(F("Changing the Encoder type will reload the page and reset Encoder specific settings to default!"));
|
||||
}
|
||||
|
||||
P143_DeviceType_e device = static_cast<P143_DeviceType_e>(P143_ENCODER_TYPE);
|
||||
|
||||
+2
-2
@@ -135,13 +135,13 @@ boolean Plugin_147(uint8_t function, struct EventStruct *event, String& string)
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Sensor model"), F("ptype"), P147_SENSOR_TYPE);
|
||||
# ifndef BUILD_NO_DEBUG
|
||||
addFormNote(F("Page will reload on change."));
|
||||
// addFormNote(F("Page will reload on change."));
|
||||
# endif // ifndef BUILD_NO_DEBUG
|
||||
}
|
||||
|
||||
addFormSelector_YesNo(F("Use Compensation"), F("comp"), P147_GET_USE_COMPENSATION, true);
|
||||
# ifndef BUILD_NO_DEBUG
|
||||
addFormNote(F("Page will reload on change."));
|
||||
// addFormNote(F("Page will reload on change."));
|
||||
# endif // ifndef BUILD_NO_DEBUG
|
||||
|
||||
if (P147_GET_USE_COMPENSATION) {
|
||||
|
||||
@@ -162,7 +162,7 @@ boolean Plugin_150(uint8_t function, struct EventStruct *event, String& string)
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Conversion mode"), F("conv"), P150_GET_CONF_CONVERSION_MODE);
|
||||
# ifndef BUILD_NO_DEBUG
|
||||
addFormNote(F("Changing this setting will save and reload this page."));
|
||||
// addFormNote(F("Changing this setting will save and reload this page."));
|
||||
# endif // ifndef BUILD_NO_DEBUG
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ boolean Plugin_150(uint8_t function, struct EventStruct *event, String& string)
|
||||
|
||||
addFormSelector_YesNo(F("Enable 'Raw' value"), F("raw"), P150_GET_OPT_ENABLE_RAW ? 1 : 0, true);
|
||||
# ifndef BUILD_NO_DEBUG
|
||||
addFormNote(F("Changing this setting will save and reload this page."));
|
||||
// addFormNote(F("Changing this setting will save and reload this page."));
|
||||
# endif // ifndef BUILD_NO_DEBUG
|
||||
|
||||
addFormCheckBox(F("Log measured values (INFO)"), F("log"), P150_GET_OPT_ENABLE_LOG);
|
||||
|
||||
@@ -230,7 +230,7 @@ boolean Plugin_159(uint8_t function, struct EventStruct *event, String& string)
|
||||
case PLUGIN_WEBFORM_LOAD:
|
||||
{
|
||||
addFormSelector_YesNo(F("Engineering mode"), F("eng"), P159_GET_ENGINEERING_MODE, true);
|
||||
addFormNote(F("When changing this setting the page will be reloaded"));
|
||||
// addFormNote(F("When changing this setting the page will be reloaded"));
|
||||
|
||||
addFormCheckBox(F("Generate Events only when changed"), F("diff"), P159_GET_UPDATE_DIFF_ONLY);
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ boolean Plugin_167(uint8_t function, struct EventStruct *event, String& string)
|
||||
FormSelectorOptions selector(optCount, options_model, options_model_value);
|
||||
selector.reloadonchange = true;
|
||||
selector.addFormSelector(F("Model Type"), P167_MODEL_LABEL, P167_MODEL);
|
||||
addFormNote(F("Changing the Model Type will reload the page."));
|
||||
// addFormNote(F("Changing the Model Type will reload the page."));
|
||||
|
||||
if (P167_MODEL == P167_MODEL_VINDSTYRKA) {
|
||||
addFormPinSelect(PinSelectPurpose::Generic_input, F("MonPin SCL"), F("taskdevicepin3"), P167_MON_SCL_PIN);
|
||||
|
||||
Reference in New Issue
Block a user