[fix] Organization filter list expansion on badge click (#2897)
In the ciphers list we show a badge for organization ownership that can be clicked to filter the vault by the organization in question. This expansion does not work for items labeled "Me". Click these badges filters by "My Vault" but doesn't expand the filter list. This commit corrects this behavior so the "Me" badges expand the organization filters when clicked. It does so by simply moving the line that checks for filter expansion out of a conditional that expects an organization, and instead does it any time an organization filter is changed. https://bitwarden.atlassian.net/browse/SG-293?focusedCommentId=13459&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13459
This commit is contained in:
parent
c93c6a775d
commit
61769f16c2
|
@ -190,8 +190,8 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
|
||||||
this.activeFilter.myVaultOnly = true;
|
this.activeFilter.myVaultOnly = true;
|
||||||
} else {
|
} else {
|
||||||
this.activeFilter.selectedOrganizationId = orgId;
|
this.activeFilter.selectedOrganizationId = orgId;
|
||||||
await this.vaultFilterService.ensureVaultFiltersAreExpanded();
|
|
||||||
}
|
}
|
||||||
|
await this.vaultFilterService.ensureVaultFiltersAreExpanded();
|
||||||
await this.applyVaultFilter(this.activeFilter);
|
await this.applyVaultFilter(this.activeFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue