1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 12:40:26 +00:00

Update bulk restore/revoke component to conditionally display non-compliant members callout. Adjusted logic to set statuses based on entry errors and isRevoking state. (#18654)

This commit is contained in:
Jared
2026-02-05 10:35:39 -05:00
committed by GitHub
parent 3fb31fd040
commit 61763204ea
2 changed files with 4 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
<bit-callout
type="danger"
*ngIf="nonCompliantMembers"
*ngIf="nonCompliantMembers && !isRevoking"
title="{{ 'nonCompliantMembersTitle' | i18n }}"
>
{{ "nonCompliantMembersError" | i18n }}

View File

@@ -88,12 +88,9 @@ export class BulkRestoreRevokeComponent {
const bulkMessage = this.isRevoking ? "bulkRevokedMessage" : "bulkRestoredMessage";
response.data.forEach(async (entry) => {
const error =
entry.error !== ""
? this.i18nService.t("cannotRestoreAccessError")
: this.i18nService.t(bulkMessage);
this.statuses.set(entry.id, error);
if (entry.error !== "") {
const status = entry.error !== "" ? entry.error : this.i18nService.t(bulkMessage);
this.statuses.set(entry.id, status);
if (entry.error !== "" && !this.isRevoking) {
this.nonCompliantMembers = true;
}
});