mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
Add snapshot host and path to Kopia widget
This commit is contained in:
parent
e265a7c645
commit
92ed6dc1cb
2 changed files with 12 additions and 1 deletions
|
@ -41,7 +41,12 @@ export default function Component({ service }) {
|
|||
return <Container service={service} error={statusError} />;
|
||||
}
|
||||
|
||||
const source = statusData?.sources[0];
|
||||
const snapshotHost = service.widget?.snapshotHost;
|
||||
const snapshotPath = service.widget?.snapshotPath;
|
||||
|
||||
const source = statusData?.sources
|
||||
.filter(el => snapshotHost ? el.source.host === snapshotHost : true)
|
||||
.filter(el => snapshotPath ? el.source.path === snapshotPath : true)[0];
|
||||
|
||||
if (!statusData || !source) {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue