diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-10-27 11:13:49 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-10-27 11:14:52 +0200 |
commit | 1eea6c0ce8d5357204fb6248c0444e5495e1c191 (patch) | |
tree | 2050b6d9e32ca8193baeeb150d9f96752690cf28 /modules/luci-base/ucode/runtime.uc | |
parent | bd4bf6ac9bafa8f1b80de37709eb64fb40c08c29 (diff) |
luci-base: add ui indicator when fallback theme is used
Add a ui indicator displaying error details when the configured theme
failed to load and the next available one is being used instead.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/ucode/runtime.uc')
-rw-r--r-- | modules/luci-base/ucode/runtime.uc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/ucode/runtime.uc b/modules/luci-base/ucode/runtime.uc index a8b6812e74..d02d8dd667 100644 --- a/modules/luci-base/ucode/runtime.uc +++ b/modules/luci-base/ucode/runtime.uc @@ -137,6 +137,7 @@ export default function(env) { if (status !== true) { media = null; + self.env.media_error = status; for (let k, v in uci.get_all('luci', 'themes')) { if (substr(k, 0, 1) != '.') { |