mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2025-12-30 16:12:13 -06:00
Update Deletion
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user