Content-Length: 6659 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1806.diff
thub.com diff --git a/client/packages/lowcoder/src/api/userApi.ts b/client/packages/lowcoder/src/api/userApi.ts index cd06186ca..5955071a8 100644 --- a/client/packages/lowcoder/src/api/userApi.ts +++ b/client/packages/lowcoder/src/api/userApi.ts @@ -65,6 +65,8 @@ export interface GetMyOrgsResponse extends ApiResponse { data: Array<{ orgId: string; orgName: string; + createdAt?: number; + updatedAt?: number; }>; pageNum: number; pageSize: number; diff --git a/client/packages/lowcoder/src/constants/orgConstants.ts b/client/packages/lowcoder/src/constants/orgConstants.ts index a79608b92..d46d9957b 100644 --- a/client/packages/lowcoder/src/constants/orgConstants.ts +++ b/client/packages/lowcoder/src/constants/orgConstants.ts @@ -54,6 +54,8 @@ export type Org = { createdBy: string; commonSettings: CommonSettingResponseData; createTime?: string; + createdAt?: number; + updatedAt?: number; }; export type OrgAndRole = { diff --git a/client/packages/lowcoder/src/i18n/locales/en.ts b/client/packages/lowcoder/src/i18n/locales/en.ts index 44f5f4b1d..72f320b73 100644 --- a/client/packages/lowcoder/src/i18n/locales/en.ts +++ b/client/packages/lowcoder/src/i18n/locales/en.ts @@ -3062,7 +3062,9 @@ export const en = { "inviteSuccessMessage": "Join the Workspace Successfully", "inviteFailMessage": "Failed to Join Workspace", "uploadErrorMessage": "Upload Error", - "orgName": "Workspace Name" + "orgName": "Workspace Name", + "createdAt": "Created", + "updatedAt": "Updated" }, "freeLimit": "Free Trial", diff --git a/client/packages/lowcoder/src/pages/setting/organization/orgList.tsx b/client/packages/lowcoder/src/pages/setting/organization/orgList.tsx index 2f4dc160e..c60f492ea 100644 --- a/client/packages/lowcoder/src/pages/setting/organization/orgList.tsx +++ b/client/packages/lowcoder/src/pages/setting/organization/orgList.tsx @@ -19,13 +19,14 @@ import { isSaasMode } from "util/envUtils"; import { selectSystemConfig } from "redux/selectors/configSelectors"; import { default as Form } from "antd/es/form"; import { default as Input } from "antd/es/input"; -import { Pagination, Spin } from "antd"; +import { Pagination, Spin, Tooltip } from "antd"; import { getUser } from "redux/selectors/usersSelectors"; import { getOrgCreateStatus } from "redux/selectors/orgSelectors"; import { useWorkspaceManager } from "util/useWorkspaceManager"; import { Org } from "constants/orgConstants"; import { useState } from "react"; import { SwapOutlined } from "@ant-design/icons"; +import dayjs from "dayjs"; const OrgName = styled.div` display: flex; @@ -170,6 +171,8 @@ type DataItemInfo = { del: boolean; orgName: string; logoUrl: string; + createdAt?: number; + updatedAt?: number; }; function OrganizationSetting() { @@ -194,6 +197,7 @@ function OrganizationSetting() { }); + // Filter to only show orgs where user has admin permissions const adminOrgs = displayWorkspaces.filter((org: Org) => { const role = user.orgRoleMap.get(org.id); @@ -205,10 +209,14 @@ function OrganizationSetting() { del: adminOrgs.length > 1, orgName: org.name, logoUrl: org.logoUrl || "", + createdAt: org.createdAt, + updatedAt: org.updatedAt, })); + + return ( -Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1806.diff
Alternative Proxies: