mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 11:43:51 +00:00
adds func getIconString and uses it to have a different icon for free/family orgs
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
}}"
|
||||
[attr.aria-pressed]="activeFilter.selectedOrganizationId === organization.id"
|
||||
>
|
||||
<i class="bwi bwi-fw bwi-business" 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">
|
||||
|
||||
@@ -5,6 +5,7 @@ import { Component } from "@angular/core";
|
||||
import { OrganizationFilterComponent as BaseOrganizationFilterComponent } from "@bitwarden/angular/vault/vault-filter/components/organization-filter.component";
|
||||
import { DisplayMode } from "@bitwarden/angular/vault/vault-filter/models/display-mode";
|
||||
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
||||
import { ProductTierType } from "@bitwarden/common/billing/enums";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { ToastService } from "@bitwarden/components";
|
||||
@@ -50,4 +51,15 @@ export class OrganizationFilterComponent extends BaseOrganizationFilterComponent
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
getIconString(organization: Organization): string {
|
||||
if (
|
||||
organization?.productTierType === ProductTierType.Free ||
|
||||
organization?.productTierType === ProductTierType.Families
|
||||
) {
|
||||
return "bwi-family";
|
||||
} else {
|
||||
return "bwi-business";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user