luci-app-statistics: treat APC UPS "host" setting as single value option
authorJo-Philipp Wich <jo@mein.io>
Tue, 27 Apr 2021 08:09:05 +0000 (10:09 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 27 Apr 2021 08:17:05 +0000 (10:17 +0200)
commit8816c8fff7e8e30f19e85c0f1c7f70b6914be701
treed77b437242589003bb934ef5557df4ee79b6c0e8
parentc6b4d4ab5a2c57889bcf14fafac17e73d22205c6
luci-app-statistics: treat APC UPS "host" setting as single value option

Existing Lua code incorrectly stated that the "Host" option takes a space
sparated list of hostnames which is not the case since the collect plugin
does not handle multiple hosts.

This change reverts the configuration to a simple value as proposed by
the original PR and adjusts the config summary accordingly, while retaining
the translation string.

Ref: https://github.com/openwrt/luci/pull/5010#issuecomment-827285319
Fixes: dd5d96afd ("luci-app-statistics: fix APC UPS host configuration")
Fixes: e7d22dce5 ("luci-app-statistics: convert collectd configuration to client side views")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
35 files changed:
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/apcups.js
applications/luci-app-statistics/po/ar/statistics.po
applications/luci-app-statistics/po/bg/statistics.po
applications/luci-app-statistics/po/bn_BD/statistics.po
applications/luci-app-statistics/po/ca/statistics.po
applications/luci-app-statistics/po/cs/statistics.po
applications/luci-app-statistics/po/de/statistics.po
applications/luci-app-statistics/po/el/statistics.po
applications/luci-app-statistics/po/en/statistics.po
applications/luci-app-statistics/po/es/statistics.po
applications/luci-app-statistics/po/fi/statistics.po
applications/luci-app-statistics/po/fr/statistics.po
applications/luci-app-statistics/po/he/statistics.po
applications/luci-app-statistics/po/hi/statistics.po
applications/luci-app-statistics/po/hu/statistics.po
applications/luci-app-statistics/po/it/statistics.po
applications/luci-app-statistics/po/ja/statistics.po
applications/luci-app-statistics/po/ko/statistics.po
applications/luci-app-statistics/po/mr/statistics.po
applications/luci-app-statistics/po/ms/statistics.po
applications/luci-app-statistics/po/nb_NO/statistics.po
applications/luci-app-statistics/po/nl/statistics.po
applications/luci-app-statistics/po/pl/statistics.po
applications/luci-app-statistics/po/pt/statistics.po
applications/luci-app-statistics/po/pt_BR/statistics.po
applications/luci-app-statistics/po/ro/statistics.po
applications/luci-app-statistics/po/ru/statistics.po
applications/luci-app-statistics/po/sk/statistics.po
applications/luci-app-statistics/po/sv/statistics.po
applications/luci-app-statistics/po/templates/statistics.pot
applications/luci-app-statistics/po/tr/statistics.po
applications/luci-app-statistics/po/uk/statistics.po
applications/luci-app-statistics/po/vi/statistics.po
applications/luci-app-statistics/po/zh_Hans/statistics.po
applications/luci-app-statistics/po/zh_Hant/statistics.po