mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 16:13:58 -07:00
Add Suggest translation change link
This commit is contained in:
parent
3b7989b154
commit
3ec6a73656
5 changed files with 30 additions and 1 deletions
|
@ -37,6 +37,22 @@
|
|||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.translation {
|
||||
composes: link from '~Components/Link/Link.css';
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 35px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 60px;
|
||||
|
||||
&:hover {
|
||||
color: #1d563d;
|
||||
}
|
||||
}
|
||||
|
||||
.donate {
|
||||
composes: link from '~Components/Link/Link.css';
|
||||
|
||||
|
@ -59,7 +75,8 @@
|
|||
display: flex;
|
||||
}
|
||||
|
||||
.donate {
|
||||
.donate,
|
||||
.translation {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ interface CssExports {
|
|||
'logoLink': string;
|
||||
'right': string;
|
||||
'sidebarToggleContainer': string;
|
||||
'translation': string;
|
||||
}
|
||||
export const cssExports: CssExports;
|
||||
export default cssExports;
|
||||
|
|
|
@ -4,6 +4,7 @@ import keyboardShortcuts, { shortcuts } from 'Components/keyboardShortcuts';
|
|||
import IconButton from 'Components/Link/IconButton';
|
||||
import Link from 'Components/Link/Link';
|
||||
import { icons } from 'Helpers/Props';
|
||||
import translate from 'Utilities/String/translate';
|
||||
import ArtistSearchInputConnector from './ArtistSearchInputConnector';
|
||||
import KeyboardShortcutsModal from './KeyboardShortcutsModal';
|
||||
import PageHeaderActionsMenuConnector from './PageHeaderActionsMenuConnector';
|
||||
|
@ -81,6 +82,13 @@ class PageHeader extends Component {
|
|||
to="https://lidarr.audio/donate"
|
||||
size={14}
|
||||
/>
|
||||
<IconButton
|
||||
className={styles.translation}
|
||||
title={translate('SuggestTranslationChange')}
|
||||
name={icons.TRANSLATE}
|
||||
to="https://translate.servarr.com/projects/servarr/lidarr/"
|
||||
size={24}
|
||||
/>
|
||||
<PageHeaderActionsMenuConnector
|
||||
onKeyboardShortcutsPress={this.onOpenKeyboardShortcutsModal}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue