mirror of
https://github.com/bitwarden/browser
synced 2026-02-24 00:23:17 +00:00
Revert "Adds a function to organization.ts to get the icon string. Updates how the icon string is retrieved."
This reverts commit d54507bc2a.
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
}}"
|
||||
[attr.aria-pressed]="activeFilter.selectedOrganizationId === organization.id"
|
||||
>
|
||||
<i class="bwi bwi-fw {{ organization.getIconString() }}" aria-hidden="true"></i>
|
||||
<i class="bwi bwi-fw {{ getIconString(organization) }}" aria-hidden="true"></i>
|
||||
{{ organization.name }}
|
||||
</button>
|
||||
<span *ngIf="!organization.enabled" class="tw-ml-auto">
|
||||
|
||||
@@ -24,6 +24,7 @@ import { PolicyType } from "@bitwarden/common/admin-console/enums";
|
||||
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
||||
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||
import { getUserId } from "@bitwarden/common/auth/services/account.service";
|
||||
import { ProductTierType } from "@bitwarden/common/billing/enums";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { SingleUserState, StateProvider } from "@bitwarden/common/platform/state";
|
||||
import { OrganizationId, UserId } from "@bitwarden/common/types/guid";
|
||||
@@ -185,7 +186,14 @@ export class VaultFilterService implements VaultFilterServiceAbstraction {
|
||||
const orgNodes: TreeNode<OrganizationFilter>[] = [];
|
||||
orgs.forEach((org) => {
|
||||
const orgCopy = org as OrganizationFilter;
|
||||
orgCopy.icon = org.getIconString();
|
||||
if (
|
||||
org?.productTierType === ProductTierType.Free ||
|
||||
org?.productTierType === ProductTierType.Families
|
||||
) {
|
||||
orgCopy.icon = "bwi-family";
|
||||
} else {
|
||||
orgCopy.icon = "bwi-business";
|
||||
}
|
||||
const node = new TreeNode<OrganizationFilter>(orgCopy, headNode, orgCopy.name);
|
||||
orgNodes.push(node);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user