Add snapshot host and path to Kopia widget
This commit is contained in:
1 parent
e265a7c645
commit
92ed6dc1cb
2 files changed
+12
-1
No files matched your search
@@ -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