mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
[SM-1292] Add secret view dialog (#9445)
* Add secret view dialog * Use secret view dialog
This commit is contained in:
@@ -41,6 +41,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 {
|
||||
ServiceAccountDialogComponent,
|
||||
@@ -277,6 +281,15 @@ export class OverviewComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
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