Fixup gcs backup storage configuration

This commit is contained in:
Johannes Zellner
2025-05-05 12:18:56 +02:00
parent 98cc0b9dfc
commit d9f07c4de4
2 changed files with 14 additions and 17 deletions
+2 -8
View File
@@ -121,16 +121,10 @@ async function onSubmit() {
data.noHardlinks = !providerConfig.value.useHardlinks;
data.preserveAttributes = true;
} else if (data.provider === 'gcs') {
// TODO we should probably allow to change the config without reuploading a new .json
if (providerConfig.value.gcsKeyContentJson) return;
data.bucket = providerConfig.value.bucket;
data.prefix = providerConfig.value.prefix;
data.projectId = providerConfig.value.gcsKeyContentJson.project_id;
data.credentials = {
client_email: providerConfig.value.gcsKeyContentJson.client_email,
private_key: providerConfig.value.gcsKeyContentJson.private_key
};
data.projectId = providerConfig.value.projectId;
data.credentials = providerConfig.value.credentials;
}
const limits = {