1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-08 15:06:08 +02:00

Updated share modal's title for templates

This commit is contained in:
Harshil Sharma 2022-03-28 14:06:41 +05:30
parent 5e74404077
commit acd0ca71cd
2 changed files with 13 additions and 1 deletions

View File

@ -181,6 +181,7 @@
"ShareBoard.tokenRegenrated": "Token regenerated",
"ShareBoard.userPermissionsRemoveMemberText": "Remove member",
"ShareBoard.userPermissionsYouText": "(You)",
"ShareTemplate.Title": "Share Template",
"Sidebar.about": "About Focalboard",
"Sidebar.add-board": "+ Add board",
"Sidebar.changePassword": "Change password",

View File

@ -240,7 +240,7 @@ export default function ShareBoardDialog(props: Props): JSX.Element {
))
}
const toolbar = (
const shareBoardTitle = (
<span className='text-heading5'>
<FormattedMessage
id={'ShareBoard.Title'}
@ -249,6 +249,17 @@ export default function ShareBoardDialog(props: Props): JSX.Element {
</span>
)
const shareTemplateTitle = (
<span className='text-heading5'>
<FormattedMessage
id={'ShareTemplate.Title'}
defaultMessage={'Share Template'}
/>
</span>
)
const toolbar = board.isTemplate ? shareTemplateTitle : shareBoardTitle
return (
<Dialog
onClose={props.onClose}