mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Rename unifi_console info widget to unifi
This commit is contained in:
parent
42da3eca28
commit
fe1064b173
4 changed files with 5 additions and 6 deletions
|
@ -17,11 +17,11 @@ async function getWidget(req) {
|
|||
const { group, service, type } = req.query;
|
||||
|
||||
let widget = null;
|
||||
if (type === "unifi_console") {
|
||||
if (type === "unifi") {
|
||||
const settings = getSettings();
|
||||
widget = settings.unifi_console;
|
||||
widget = settings.unifi;
|
||||
if (!widget) {
|
||||
logger.debug("There is no unifi_console section in settings.yaml");
|
||||
logger.debug("There is no unifi section in settings.yaml");
|
||||
return null;
|
||||
}
|
||||
widget.type = "unifi";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue