mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 21:59:50 +01:00
Add snapshot host and path to Kopia widget
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user