Skip to content

Commit

Permalink
NAS-132751: Cloud Credentials: It is not possible to delete cloud cre…
Browse files Browse the repository at this point in the history
…dentials (#11122)
  • Loading branch information
AlexKarpov98 authored Dec 2, 2024
1 parent 036fc6c commit 625db12
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { cloudCredentialsCardElements } from 'app/pages/credentials/backup-crede
import { CloudCredentialFormInput, CloudCredentialsFormComponent } from 'app/pages/credentials/backup-credentials/cloud-credentials-form/cloud-credentials-form.component';
import { ChainedSlideInService } from 'app/services/chained-slide-in.service';
import { CloudCredentialService } from 'app/services/cloud-credential.service';
import { ErrorHandlerService } from 'app/services/error-handler.service';
import { ApiService } from 'app/services/websocket/api.service';

@UntilDestroy()
Expand Down Expand Up @@ -101,6 +102,7 @@ export class CloudCredentialsCardComponent implements OnInit {
private chainedSlideinService: ChainedSlideInService,
private dialog: DialogService,
private cloudCredentialService: CloudCredentialService,
private errorHandler: ErrorHandlerService,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -165,6 +167,7 @@ export class CloudCredentialsCardComponent implements OnInit {
.pipe(
filter(Boolean),
switchMap(() => this.api.call('cloudsync.credentials.delete', [credential.id])),
this.errorHandler.catchError(),
untilDestroyed(this),
)
.subscribe(() => {
Expand Down

0 comments on commit 625db12

Please sign in to comment.