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

Function handleView

frontend/src/react/pages/settings/UsersPage.tsx:170–180  ·  view source on GitHub ↗
(user: User)

Source from the content-addressed store, hash-verified

168 };
169
170 const handleView = (user: User) => {
171 const accountType = getAccountTypeByEmail(user.email);
172 if (accountType === AccountType.USER && onUserSelected) {
173 onUserSelected(user);
174 } else {
175 router.push({
176 name: WORKSPACE_ROUTE_USER_PROFILE,
177 params: { principalEmail: user.email },
178 });
179 }
180 };
181
182 const getDeletePermission = (accountType: AccountType) => {
183 switch (accountType) {

Callers 1

UserTableFunction · 0.85

Calls 1

getAccountTypeByEmailFunction · 0.90

Tested by

no test coverage detected