mirror of
https://github.com/s00500/ESPUI.git
synced 2025-06-11 07:40:39 +00:00
two strings less
This commit is contained in:
@ -583,14 +583,14 @@ void ESPUIClass::jsonDom(AsyncWebSocketClient *client) {
|
|||||||
|
|
||||||
JsonObject titleItem = items.createNestedObject();
|
JsonObject titleItem = items.createNestedObject();
|
||||||
titleItem["type"] = (int)UI_TITLE;
|
titleItem["type"] = (int)UI_TITLE;
|
||||||
titleItem["label"] = String(ui_title);
|
titleItem["label"] = ui_title;
|
||||||
|
|
||||||
while (control != nullptr) {
|
while (control != nullptr) {
|
||||||
JsonObject item = items.createNestedObject();
|
JsonObject item = items.createNestedObject();
|
||||||
|
|
||||||
item["id"] = String(control->id);
|
item["id"] = String(control->id);
|
||||||
item["type"] = (int)control->type;
|
item["type"] = (int)control->type;
|
||||||
item["label"] = String(control->label);
|
item["label"] = control->label;
|
||||||
item["value"] = String(control->value);
|
item["value"] = String(control->value);
|
||||||
item["color"] = (int)control->color;
|
item["color"] = (int)control->color;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user