1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-24 16:43:27 +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:
Jackson Engstrom
2026-01-14 10:07:37 -08:00
parent d54507bc2a
commit d1e3fb58fa
4 changed files with 10 additions and 63 deletions

View File

@@ -294,54 +294,4 @@ describe("Organization", () => {
expect(organization.canEnableAutoConfirmPolicy).toBe(false);
});
});
describe("getIconString", () => {
it("should return bwi-family when productTierType is free", () => {
data.productTierType = ProductTierType.Free;
const organization = new Organization(data);
expect(organization.getIconString()).toBe("bwi-family");
});
it("should return bwi-family when productTierType is families", () => {
data.productTierType = ProductTierType.Families;
const organization = new Organization(data);
expect(organization.getIconString()).toBe("bwi-family");
});
it("should return bwi-business when productTierType is teams", () => {
data.productTierType = ProductTierType.Teams;
const organization = new Organization(data);
expect(organization.getIconString()).toBe("bwi-business");
});
it("should return bwi-business when productTierType is enterprise", () => {
data.productTierType = ProductTierType.Enterprise;
const organization = new Organization(data);
expect(organization.getIconString()).toBe("bwi-business");
});
it("should return bwi-business when productTierType is teamsStarter", () => {
data.productTierType = ProductTierType.TeamsStarter;
const organization = new Organization(data);
expect(organization.getIconString()).toBe("bwi-business");
});
it("should return bwi-business when productTierType is null", () => {
data.productTierType = null;
const organization = new Organization(data);
expect(organization.getIconString()).toBe("bwi-business");
});
});
});

View File

@@ -415,15 +415,4 @@ export class Organization {
get canUseAccessIntelligence() {
return this.productTierType === ProductTierType.Enterprise;
}
getIconString(): string {
if (
this?.productTierType === ProductTierType.Free ||
this?.productTierType === ProductTierType.Families
) {
return "bwi-family";
} else {
return "bwi-business";
}
}
}