diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 76ed9a54..cabe386a 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -299,7 +299,7 @@ export function cleanServiceGroups(groups) { stream, // mjpeg fit, method, // openmediavault widget - mappings, // custom widget + mappings, // customapi widget refreshInterval, } = cleanedService.widget; @@ -374,7 +374,7 @@ export function cleanServiceGroups(groups) { if (type === "openmediavault") { if (method) cleanedService.widget.method = method; } - if (type === "custom") { + if (type === "customapi") { if (mappings) cleanedService.widget.mappings = mappings; if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval; } diff --git a/src/widgets/components.js b/src/widgets/components.js index dec3847f..b680f1d3 100644 --- a/src/widgets/components.js +++ b/src/widgets/components.js @@ -13,7 +13,7 @@ const components = { channelsdvrserver: dynamic(() => import("./channelsdvrserver/component")), cloudflared: dynamic(() => import("./cloudflared/component")), coinmarketcap: dynamic(() => import("./coinmarketcap/component")), - custom: dynamic(() => import("./custom/component")), + customapi: dynamic(() => import("./customapi/component")), deluge: dynamic(() => import("./deluge/component")), diskstation: dynamic(() => import("./diskstation/component")), downloadstation: dynamic(() => import("./downloadstation/component")), diff --git a/src/widgets/custom/component.jsx b/src/widgets/customapi/component.jsx similarity index 100% rename from src/widgets/custom/component.jsx rename to src/widgets/customapi/component.jsx diff --git a/src/widgets/custom/widget.js b/src/widgets/customapi/widget.js similarity index 100% rename from src/widgets/custom/widget.js rename to src/widgets/customapi/widget.js diff --git a/src/widgets/widgets.js b/src/widgets/widgets.js index 1fd7b2fc..dbbecd7f 100644 --- a/src/widgets/widgets.js +++ b/src/widgets/widgets.js @@ -10,7 +10,7 @@ import changedetectionio from "./changedetectionio/widget"; import channelsdvrserver from "./channelsdvrserver/widget"; import cloudflared from "./cloudflared/widget"; import coinmarketcap from "./coinmarketcap/widget"; -import custom from "./custom/widget"; +import customapi from "./customapi/widget"; import deluge from "./deluge/widget"; import diskstation from "./diskstation/widget"; import downloadstation from "./downloadstation/widget"; @@ -108,7 +108,7 @@ const widgets = { channelsdvrserver, cloudflared, coinmarketcap, - custom, + customapi, deluge, diskstation, downloadstation,