Update Deletion

This commit is contained in:
DerDavidBohl
2025-10-03 00:47:56 +02:00
parent 0a8a94b737
commit 08412fe5e9
2 changed files with 5 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ public class SecretService {
Secret secret = secretRepository.findById(key).orElseGet(() -> new Secret(key, environmentVariable, value, deployments));
secret.setDeployments(deployments);
secret.setEnvironmentVariable(environmentVariable);
if(value != null )
secret.setEncryptedValue(encrypt(value));

View File

@@ -70,6 +70,8 @@ export class EditSecretDialogComponent {
addDeployment($event: MatChipInputEvent) {
if($event.value.trim().length === 0) return;
$event.chipInput.clear();
if (this.secret.deployments.includes($event.value)) return;