Skip to content

Commit

Permalink
Use different link text in different places
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Aug 14, 2023
1 parent fb0b7f2 commit c3e2d89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/app-desktop/gui/ConfigScreen/ConfigScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ class ConfigScreenComponent extends React.Component<any, any> {
<p key='missing-password-warning' style={warningStyle}>
{_('Warning: Missing password.')}
{' '}
<MissingPasswordHelpLink theme={theme}/>
<MissingPasswordHelpLink
theme={theme}
text={_('Help')}
/>
</p>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import * as React from 'react';
import shim from '@joplin/lib/shim';
import bridge from '../../../services/bridge';
import StyledLink from '../../style/StyledLink';
import { _ } from '@joplin/lib/locale';

interface Props {
theme: any;
text: string;
}

const openMissingPasswordFAQ = () =>
Expand All @@ -20,7 +20,7 @@ const MissingPasswordHelpLink: React.FunctionComponent<Props> = props => {
onClick={openMissingPasswordFAQ}
style={props.theme.linkStyle}
>
{_('Help')}
{props.text}
</StyledLink>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ const EncryptionConfigScreen = (props: Props) => {
<br/>
{_('Please click on "%s" to proceed, or set the passwords in the "%s" list below.', buttonTitle, _('Encryption keys'))}
<br/>
<MissingPasswordHelpLink theme={theme} />
<MissingPasswordHelpLink
theme={theme}
text={_('Help: Missing password')}
/>
</p>
);

Expand Down

0 comments on commit c3e2d89

Please sign in to comment.