Health UI improvements

Fixed: Failing to get items from SABnzbd will report health error properly
Fixed: Some health checks not showing test all button on System: Health
This commit is contained in:
Mark McDowall 2019-08-15 00:24:09 -07:00
parent 0d410d107d
commit 767a09894a
5 changed files with 11 additions and 20 deletions

View File

@ -6,6 +6,12 @@ import FormGroup from 'Components/Form/FormGroup';
import FormLabel from 'Components/Form/FormLabel';
import FormInputGroup from 'Components/Form/FormInputGroup';
const logLevelOptions = [
{ key: 'info', value: 'Info' },
{ key: 'debug', value: 'Debug' },
{ key: 'trace', value: 'Trace' }
];
function LoggingSettings(props) {
const {
settings,
@ -16,12 +22,6 @@ function LoggingSettings(props) {
logLevel
} = settings;
const logLevelOptions = [
{ key: 'info', value: 'Info' },
{ key: 'debug', value: 'Debug' },
{ key: 'trace', value: 'Trace' }
];
return (
<FieldSet legend="Logging">
<FormGroup>

View File

@ -26,6 +26,7 @@ function getInternalLink(source) {
/>
);
case 'DownloadClientCheck':
case 'DownloadClientStatusCheck':
case 'ImportMechanismCheck':
return (
<IconButton
@ -67,6 +68,7 @@ function getTestLink(source, props) {
/>
);
case 'DownloadClientCheck':
case 'DownloadClientStatusCheck':
return (
<SpinnerIconButton
name={icons.TEST}

View File

@ -27,5 +27,5 @@
.actions {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 20px;
width: 60px;
}

View File

@ -179,7 +179,7 @@ namespace NzbDrone.Core.Configuration
public string Branch => GetValue("Branch", "master").ToLowerInvariant();
public string LogLevel => GetValue("LogLevel", "Info");
public string LogLevel => GetValue("LogLevel", "info");
public string ConsoleLogLevel => GetValue("ConsoleLogLevel", string.Empty, persist: false);
public string SslCertHash => GetValue("SslCertHash", "");

View File

@ -51,18 +51,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
private IEnumerable<DownloadClientItem> GetQueue()
{
SabnzbdQueue sabQueue;
try
{
sabQueue = _proxy.GetQueue(0, 0, Settings);
}
catch (DownloadClientException ex)
{
_logger.Warn(ex, "Couldn't get download queue. {0}", ex.Message);
return Enumerable.Empty<DownloadClientItem>();
}
var sabQueue = _proxy.GetQueue(0, 0, Settings);
var queueItems = new List<DownloadClientItem>();
foreach (var sabQueueItem in sabQueue.Items)