Revert "Rename unifi_console info widget to unifi"
This commit is contained in:
1 parent
fbac27f504
commit
69c9a449b1
4 files changed
+6
-5
No files matched your search
@@ -17,11 +17,11 @@ async function getWidget(req) {
|
||||
const { group, service, type } = req.query;
|
||||
|
||||
let widget = null;
|
||||
if (type === "unifi") {
|
||||
if (type === "unifi_console") {
|
||||
const settings = getSettings();
|
||||
widget = settings.unifi;
|
||||
widget = settings.unifi_console;
|
||||
if (!widget) {
|
||||
logger.debug("There is no unifi section in settings.yaml");
|
||||
logger.debug("There is no unifi_console section in settings.yaml");
|
||||
return null;
|
||||
}
|
||||
widget.type = "unifi";
|
||||
|
||||
@@ -61,6 +61,7 @@ const widgets = {
|
||||
traefik,
|
||||
transmission,
|
||||
unifi,
|
||||
unifi_console: unifi
|
||||
};
|
||||
|
||||
export default widgets;
|
||||
Reference in new issue
Block a user