1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-02 16:43:19 +00:00

Bulk confirm (#987)

* Add bulk confirm

* Add confirmation modal to the other bulk actions

* Add spinner to bulk status to let the user know something is going on

* Fix linting

* Add await before reloading users

* Close modal on error

* Bump jslib
This commit is contained in:
Oscar Hinton
2021-05-25 19:24:09 +02:00
committed by GitHub
parent d566c963c1
commit d31130b79f
10 changed files with 285 additions and 84 deletions

View File

@@ -201,7 +201,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
for (const org of orgs) {
// If not already enrolled, skip
if (!org.isResetPasswordEnrolled) {
if (!org.resetPasswordEnrolled) {
continue;
}

View File

@@ -98,7 +98,7 @@ export class OrganizationsComponent implements OnInit {
let toastStringRef = 'withdrawPasswordResetSuccess';
// Enroll - encrpyt user's encKey.key with organization key
if (!org.isResetPasswordEnrolled) {
if (!org.resetPasswordEnrolled) {
const encKey = await this.cryptoService.getEncKey();
const orgSymKey = await this.cryptoService.getOrgKey(org.id);
const encryptedKey = await this.cryptoService.encrypt(encKey.key, orgSymKey);