Add info box under health messages

(cherry picked from commit 936ef9f461c3e80a36099508c420dc44d8cd293c)

Closes #9095
This commit is contained in:
Stevie Robinson 2023-08-29 04:27:15 +02:00 committed by Bogdan
parent 0e2c98827f
commit 37aa739611
2 changed files with 9 additions and 0 deletions

View File

@ -1,10 +1,12 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Alert from 'Components/Alert';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import IconButton from 'Components/Link/IconButton';
import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import InlineMarkdown from 'Components/Markdown/InlineMarkdown';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
@ -214,6 +216,12 @@ class Health extends Component {
</TableBody>
</Table>
}
{
healthIssues &&
<Alert kind={kinds.INFO}>
<InlineMarkdown data={translate('HealthMessagesInfoBox', { link: '/system/logs/files' })} />
</Alert>
}
</FieldSet>
);
}

View File

@ -436,6 +436,7 @@
"HardlinkCopyFiles": "Hardlink/Copy Files",
"HaveNotAddedMovies": "You haven't added any movies yet, do you want to import some or all of your movies first?",
"Health": "Health",
"HealthMessagesInfoBox": "You can find more information about the cause of these health check messages by clicking the wiki link (book icon) at the end of the row, or by checking your [logs]({link}). If you have difficulty interpreting these messages then you can reach out to our support, at the links below.",
"HealthNoIssues": "No issues with your configuration",
"HiddenClickToShow": "Hidden, click to show",
"HideAdvanced": "Hide Advanced",