From 8c07f0d3d19a48ed96d1ded54399c66bf2977b2a Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Tue, 10 Oct 2023 05:40:00 +0200 Subject: [PATCH] New: Additional tooltips for icon buttons --- frontend/src/Components/Modal/ModalContent.js | 2 ++ frontend/src/Components/Page/Header/PageHeader.js | 1 + frontend/src/Components/Page/Header/PageHeaderActionsMenu.js | 1 + frontend/src/Episode/EpisodeSearchCell.js | 3 +++ 4 files changed, 7 insertions(+) diff --git a/frontend/src/Components/Modal/ModalContent.js b/frontend/src/Components/Modal/ModalContent.js index 8883bf2b9..1d3862a13 100644 --- a/frontend/src/Components/Modal/ModalContent.js +++ b/frontend/src/Components/Modal/ModalContent.js @@ -3,6 +3,7 @@ import React from 'react'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import { icons } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; import styles from './ModalContent.css'; function ModalContent(props) { @@ -28,6 +29,7 @@ function ModalContent(props) { } diff --git a/frontend/src/Components/Page/Header/PageHeader.js b/frontend/src/Components/Page/Header/PageHeader.js index 23d7d7f99..2af052015 100644 --- a/frontend/src/Components/Page/Header/PageHeader.js +++ b/frontend/src/Components/Page/Header/PageHeader.js @@ -81,6 +81,7 @@ class PageHeader extends Component { aria-label={translate('Donate')} to="https://sonarr.tv/donate.html" size={14} + title={translate('Donate')} /> diff --git a/frontend/src/Episode/EpisodeSearchCell.js b/frontend/src/Episode/EpisodeSearchCell.js index c09b3e65a..3ec76d365 100644 --- a/frontend/src/Episode/EpisodeSearchCell.js +++ b/frontend/src/Episode/EpisodeSearchCell.js @@ -4,6 +4,7 @@ import IconButton from 'Components/Link/IconButton'; import SpinnerIconButton from 'Components/Link/SpinnerIconButton'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import { icons } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; import EpisodeDetailsModal from './EpisodeDetailsModal'; import styles from './EpisodeSearchCell.css'; @@ -50,11 +51,13 @@ class EpisodeSearchCell extends Component { name={icons.SEARCH} isSpinning={isSearching} onPress={onSearchPress} + title={translate('AutomaticSearch')} />