mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-02 23:11:40 +01:00
set organizationUseTotp on organizationChanged
This commit is contained in:
parent
194374ea73
commit
c946f01b5f
@ -313,12 +313,16 @@ export class AddEditComponent implements OnInit {
|
||||
u.showOptions = u.showOptions == null ? true : u.showOptions;
|
||||
}
|
||||
|
||||
organizationChanged() {
|
||||
async organizationChanged() {
|
||||
if (this.writeableCollections != null) {
|
||||
this.writeableCollections.forEach((c) => (c as any).checked = false);
|
||||
}
|
||||
if (this.cipher.organizationId != null) {
|
||||
this.collections = this.writeableCollections.filter((c) => c.organizationId === this.cipher.organizationId);
|
||||
const org = await this.userService.getOrganization(this.cipher.organizationId);
|
||||
if (org != null) {
|
||||
this.cipher.organizationUseTotp = org.useTotp;
|
||||
}
|
||||
} else {
|
||||
this.collections = [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user