mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
[SM-1292] Add secret view dialog (#9445)
* Add secret view dialog * Use secret view dialog
This commit is contained in:
@@ -19,6 +19,10 @@ import {
|
||||
SecretDialogComponent,
|
||||
SecretOperation,
|
||||
} from "../../secrets/dialog/secret-dialog.component";
|
||||
import {
|
||||
SecretViewDialogComponent,
|
||||
SecretViewDialogParams,
|
||||
} from "../../secrets/dialog/secret-view-dialog.component";
|
||||
import { SecretService } from "../../secrets/secret.service";
|
||||
import { SecretsListComponent } from "../../shared/secrets-list.component";
|
||||
import { ProjectService } from "../project.service";
|
||||
@@ -88,6 +92,15 @@ export class ProjectSecretsComponent {
|
||||
});
|
||||
}
|
||||
|
||||
openViewSecret(secretId: string) {
|
||||
this.dialogService.open<unknown, SecretViewDialogParams>(SecretViewDialogComponent, {
|
||||
data: {
|
||||
organizationId: this.organizationId,
|
||||
secretId: secretId,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
openDeleteSecret(event: SecretListView[]) {
|
||||
this.dialogService.open<unknown, SecretDeleteOperation>(SecretDeleteDialogComponent, {
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user