integrations
This commit is contained in:
parent
43910b3cc7
commit
79958e6986
@ -357,7 +357,7 @@ export function cleanServiceGroups(groups) {
|
|||||||
method, // openmediavault widget
|
method, // openmediavault widget
|
||||||
mappings, // customapi widget
|
mappings, // customapi widget
|
||||||
refreshInterval,
|
refreshInterval,
|
||||||
integration, // calendar widget
|
integrations, // calendar widget
|
||||||
} = cleanedService.widget;
|
} = cleanedService.widget;
|
||||||
|
|
||||||
let fieldsList = fields;
|
let fieldsList = fields;
|
||||||
@ -442,7 +442,7 @@ export function cleanServiceGroups(groups) {
|
|||||||
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
||||||
}
|
}
|
||||||
if (type === "calendar") {
|
if (type === "calendar") {
|
||||||
if (integration) cleanedService.widget.integration = integration;
|
if (integrations) cleanedService.widget.integrations = integrations;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,10 +25,10 @@ export default function Component({ service }) {
|
|||||||
}, [showDate]);
|
}, [showDate]);
|
||||||
|
|
||||||
// Load active integrations
|
// Load active integrations
|
||||||
const integrations = useMemo(() => widget.integration?.map(integration => ({
|
const integrations = useMemo(() => widget.integrations?.map(integration => ({
|
||||||
service: dynamic(() => import(`./integrations/${integration?.type}`)),
|
service: dynamic(() => import(`./integrations/${integration?.type}`)),
|
||||||
widget: integration,
|
widget: integration,
|
||||||
})) ?? [], [widget.integration]);
|
})) ?? [], [widget.integrations]);
|
||||||
|
|
||||||
return <Container service={service}>
|
return <Container service={service}>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user