mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Rename unifi_console info widget to unifi
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -61,7 +61,6 @@ const widgets = {
|
||||
traefik,
|
||||
transmission,
|
||||
unifi,
|
||||
unifi_console: unifi
|
||||
};
|
||||
|
||||
export default widgets;
|
||||
|
||||
Reference in New Issue
Block a user