MCPcopy Create free account
hub / github.com/bytebase/bytebase / getAccountTypeLabel

Function getAccountTypeLabel

frontend/src/react/pages/settings/UsersPage.tsx:215–224  ·  view source on GitHub ↗
(accountType: AccountType)

Source from the content-addressed store, hash-verified

213 };
214
215 const getAccountTypeLabel = (accountType: AccountType) => {
216 switch (accountType) {
217 case AccountType.SERVICE_ACCOUNT:
218 return t("settings.members.service-account");
219 case AccountType.WORKLOAD_IDENTITY:
220 return t("settings.members.workload-identity");
221 default:
222 return "";
223 }
224 };
225
226 if (users.length === 0) {
227 return (

Callers 1

UserTableFunction · 0.85

Calls 1

tFunction · 0.50

Tested by

no test coverage detected