Add schema name display in Settings Admin Workspace (#15151)
This commit is contained in:
+6
@@ -7,6 +7,7 @@ import { useImpersonationAuth } from '@/settings/admin-panel/hooks/useImpersonat
|
||||
import { useImpersonationRedirect } from '@/settings/admin-panel/hooks/useImpersonationRedirect';
|
||||
import { userLookupResultState } from '@/settings/admin-panel/states/userLookupResultState';
|
||||
import { type WorkspaceInfo } from '@/settings/admin-panel/types/WorkspaceInfo';
|
||||
import { getWorkspaceSchemaName } from '@/settings/admin-panel/utils/get-workspace-schema-name.util';
|
||||
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
|
||||
import { Table } from '@/ui/layout/table/components/Table';
|
||||
import { TableBody } from '@/ui/layout/table/components/TableBody';
|
||||
@@ -165,6 +166,11 @@ export const SettingsAdminWorkspaceContent = ({
|
||||
label: t`ID`,
|
||||
value: activeWorkspace?.id,
|
||||
},
|
||||
{
|
||||
Icon: IconId,
|
||||
label: t`Schema name`,
|
||||
value: getWorkspaceSchemaName(activeWorkspace?.id!),
|
||||
},
|
||||
{
|
||||
Icon: IconLink,
|
||||
label: t`URL`,
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import { uuidToBase36 } from 'twenty-shared/utils';
|
||||
|
||||
export const getWorkspaceSchemaName = (workspaceId: string): string => {
|
||||
return `workspace_${uuidToBase36(workspaceId)}`;
|
||||
};
|
||||
Reference in New Issue
Block a user