diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index 20354abdb..4c88238ee 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -221,6 +221,7 @@ "ShareBoard.userPermissionsRemoveMemberText": "Remove member", "ShareBoard.userPermissionsYouText": "(You)", "ShareTemplate.Title": "Share Template", + "ShareTemplate.searchPlaceholder": "Search for people", "Sidebar.about": "About Focalboard", "Sidebar.add-board": "+ Add board", "Sidebar.changePassword": "Change password", diff --git a/webapp/src/components/shareBoard/__snapshots__/shareBoard.test.tsx.snap b/webapp/src/components/shareBoard/__snapshots__/shareBoard.test.tsx.snap index 32e27e450..cfc616889 100644 --- a/webapp/src/components/shareBoard/__snapshots__/shareBoard.test.tsx.snap +++ b/webapp/src/components/shareBoard/__snapshots__/shareBoard.test.tsx.snap @@ -2379,7 +2379,7 @@ exports[`src/components/shareBoard/shareBoard return shareBoard template and cli class=" css-14el2xx-placeholder" id="react-select-14-placeholder" > - Search for people and channels + Search for people
- Search for people and channels + Search for people
- Search for people and channels + Search for people
{ }) expect(container).toMatchSnapshot() - const selectElement = screen.getByText('Search for people and channels') + const selectElement = screen.getByText('Search for people') expect(selectElement).toBeDefined() await act(async () => { diff --git a/webapp/src/components/shareBoard/shareBoard.tsx b/webapp/src/components/shareBoard/shareBoard.tsx index 126900de5..ee88eb46b 100644 --- a/webapp/src/components/shareBoard/shareBoard.tsx +++ b/webapp/src/components/shareBoard/shareBoard.tsx @@ -389,7 +389,10 @@ export default function ShareBoardDialog(props: Props): JSX.Element { getOptionValue={(u) => u.id} getOptionLabel={(u: IUser|Channel) => (u as IUser).username || (u as Channel).display_name} isMulti={false} - placeholder={intl.formatMessage({id: 'ShareBoard.searchPlaceholder', defaultMessage: 'Search for people and channels'})} + placeholder={board.isTemplate ? + intl.formatMessage({id: 'ShareTemplate.searchPlaceholder', defaultMessage: 'Search for people'}) : + intl.formatMessage({id: 'ShareBoard.searchPlaceholder', defaultMessage: 'Search for people and channels'}) + } onChange={(newValue) => { if (newValue && (newValue as IUser).username) { mutator.createBoardMember(boardId, newValue.id)