From 5d2f648d0381b291478f8a7eaac685ce074e5a66 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Wed, 4 May 2022 14:47:57 +0200 Subject: [PATCH] add option for rendering booleans on Dashboard #456 --- CHANGELOG_LATEST.md | 1 + interface/src/project/SettingsApplication.tsx | 25 ++++++++++++++++--- interface/src/project/types.ts | 1 + lib_standalone/ESP8266React.h | 1 + src/emsdevice.cpp | 20 +++++---------- src/helpers.cpp | 4 +-- src/helpers.h | 2 +- src/system.cpp | 10 +++++--- src/system.h | 9 +++++++ src/web/WebSettingsService.cpp | 4 +++ src/web/WebSettingsService.h | 1 + 11 files changed, 53 insertions(+), 25 deletions(-) diff --git a/CHANGELOG_LATEST.md b/CHANGELOG_LATEST.md index 104ef1b19..b128f1fab 100644 --- a/CHANGELOG_LATEST.md +++ b/CHANGELOG_LATEST.md @@ -39,6 +39,7 @@ - Improved Table layout in Web UI (searching, filtering, sorting, exporting to CSV) - API fetch individual attributes from an entity [#462](https://github.com/emsesp/EMS-ESP32/issues/462) - Option to disable mDNS +- Option for rendering booleans on dashboard [#456](https://github.com/emsesp/EMS-ESP32/issues/456) ### Fixed diff --git a/interface/src/project/SettingsApplication.tsx b/interface/src/project/SettingsApplication.tsx index 353f1faf0..945dfa137 100644 --- a/interface/src/project/SettingsApplication.tsx +++ b/interface/src/project/SettingsApplication.tsx @@ -402,10 +402,27 @@ const SettingsApplication: FC = () => { Formatting Options - + + + on/off + ON/OFF + true/false + 1/0 + + + { 1/0 - +