From 51b0617afadfe11fd03a2b2a5948a6dccb12d088 Mon Sep 17 00:00:00 2001 From: gijoe0295 Date: Thu, 21 Nov 2024 03:08:03 +0700 Subject: [PATCH 1/2] update new workspace button type and add go to workspace menu item --- src/languages/en.ts | 1 + src/languages/es.ts | 1 + src/pages/workspace/WorkspacesListPage.tsx | 9 +++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index 591f7eb0ed42..a063e6a9dda6 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -2462,6 +2462,7 @@ const translations = { memberNotFound: 'Member not found. To invite a new member to the workspace, please use the invite button above.', notAuthorized: `You don't have access to this page. If you're trying to join this workspace, just ask the workspace owner to add you as a member. Something else? Reach out to ${CONST.EMAIL.CONCIERGE}.`, goToRoom: ({roomName}: GoToRoomParams) => `Go to ${roomName} room`, + goToWorkspace: 'Go to workspace', workspaceName: 'Workspace name', workspaceOwner: 'Owner', workspaceType: 'Workspace type', diff --git a/src/languages/es.ts b/src/languages/es.ts index 91557c9defbf..52b0d84e9426 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -2486,6 +2486,7 @@ const translations = { memberNotFound: 'Miembro no encontrado. Para invitar a un nuevo miembro al espacio de trabajo, por favor, utiliza el botón invitar que está arriba.', notAuthorized: `No tienes acceso a esta página. Si estás intentando unirte a este espacio de trabajo, pide al dueño del espacio de trabajo que te añada como miembro. ¿Necesitas algo más? Comunícate con ${CONST.EMAIL.CONCIERGE}`, goToRoom: ({roomName}: GoToRoomParams) => `Ir a la sala ${roomName}`, + goToWorkspace: 'Ir al espacio de trabajo', workspaceName: 'Nombre del espacio de trabajo', workspaceOwner: 'Dueño', workspaceType: 'Tipo de espacio de trabajo', diff --git a/src/pages/workspace/WorkspacesListPage.tsx b/src/pages/workspace/WorkspacesListPage.tsx index 67369bf7bd88..2b028747843d 100755 --- a/src/pages/workspace/WorkspacesListPage.tsx +++ b/src/pages/workspace/WorkspacesListPage.tsx @@ -156,7 +156,13 @@ function WorkspacesListPage() { // Menu options to navigate to the chat report of #admins and #announce room. // For navigation, the chat report ids may be unavailable due to the missing chat reports in Onyx. // In such cases, let us use the available chat report ids from the policy. - const threeDotsMenuItems: PopoverMenuItem[] = []; + const threeDotsMenuItems: PopoverMenuItem[] = [ + { + icon: Expensicons.Workspace, + text: translate('workspace.common.goToWorkspace'), + onSelected: item.action, + }, + ]; if (isOwner) { threeDotsMenuItems.push({ @@ -366,7 +372,6 @@ function WorkspacesListPage() { const getHeaderButton = () => (