chore: should validate password before deleting vault (#2400)
This commit is contained in:
@@ -29,10 +29,17 @@ const VaultItem = ({ vault }: Props) => {
|
||||
undefined,
|
||||
ButtonType.Danger,
|
||||
)
|
||||
|
||||
if (!confirm) {
|
||||
return
|
||||
}
|
||||
|
||||
const authorized = await application.vaults.authorizeVaultDeletion(vault)
|
||||
|
||||
if (!authorized.getValue()) {
|
||||
return
|
||||
}
|
||||
|
||||
if (vault.isSharedVaultListing()) {
|
||||
const result = await application.sharedVaults.deleteSharedVault(vault)
|
||||
if (isClientDisplayableError(result)) {
|
||||
|
||||
Reference in New Issue
Block a user