Add snapshot host and path to Kopia widget

This commit is contained in:
Johan Steen 2023-07-24 12:28:03 +07:00
parent e265a7c645
commit 92ed6dc1cb
2 changed files with 12 additions and 1 deletions

View file

@ -291,6 +291,8 @@ export function cleanServiceGroups(groups) {
volume, // diskstation widget,
enableQueue, // sonarr/radarr
node, // Proxmox
snapshotHost, // kopia
snapshotPath,
} = cleanedService.widget;
let fieldsList = fields;
@ -345,6 +347,10 @@ export function cleanServiceGroups(groups) {
if (["diskstation", "qnap"].includes(type)) {
if (volume) cleanedService.widget.volume = volume;
}
if (type === "kopia") {
if (snapshotHost) cleanedService.widget.snapshotHost = snapshotHost;
if (snapshotPath) cleanedService.widget.snapshotPath = snapshotPath;
}
}
return cleanedService;