mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 21:42:16 -07:00
Fixed: Multiple Heath Check UI Fixes
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
89d912bb2b
commit
936b2502cc
5 changed files with 11 additions and 20 deletions
|
@ -6,6 +6,12 @@ import FormGroup from 'Components/Form/FormGroup';
|
||||||
import FormLabel from 'Components/Form/FormLabel';
|
import FormLabel from 'Components/Form/FormLabel';
|
||||||
import FormInputGroup from 'Components/Form/FormInputGroup';
|
import FormInputGroup from 'Components/Form/FormInputGroup';
|
||||||
|
|
||||||
|
const logLevelOptions = [
|
||||||
|
{ key: 'info', value: 'Info' },
|
||||||
|
{ key: 'debug', value: 'Debug' },
|
||||||
|
{ key: 'trace', value: 'Trace' }
|
||||||
|
];
|
||||||
|
|
||||||
function LoggingSettings(props) {
|
function LoggingSettings(props) {
|
||||||
const {
|
const {
|
||||||
settings,
|
settings,
|
||||||
|
@ -16,12 +22,6 @@ function LoggingSettings(props) {
|
||||||
logLevel
|
logLevel
|
||||||
} = settings;
|
} = settings;
|
||||||
|
|
||||||
const logLevelOptions = [
|
|
||||||
{ key: 'info', value: 'Info' },
|
|
||||||
{ key: 'debug', value: 'Debug' },
|
|
||||||
{ key: 'trace', value: 'Trace' }
|
|
||||||
];
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FieldSet legend="Logging">
|
<FieldSet legend="Logging">
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
|
|
|
@ -26,6 +26,7 @@ function getInternalLink(source) {
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
case 'DownloadClientCheck':
|
case 'DownloadClientCheck':
|
||||||
|
case 'DownloadClientStatusCheck':
|
||||||
case 'ImportMechanismCheck':
|
case 'ImportMechanismCheck':
|
||||||
case 'RemotePathMappingCheck':
|
case 'RemotePathMappingCheck':
|
||||||
return (
|
return (
|
||||||
|
@ -68,6 +69,7 @@ function getTestLink(source, props) {
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
case 'DownloadClientCheck':
|
case 'DownloadClientCheck':
|
||||||
|
case 'DownloadClientStatusCheck':
|
||||||
return (
|
return (
|
||||||
<SpinnerIconButton
|
<SpinnerIconButton
|
||||||
name={icons.TEST}
|
name={icons.TEST}
|
||||||
|
|
|
@ -27,5 +27,5 @@
|
||||||
.actions {
|
.actions {
|
||||||
composes: cell from '~Components/Table/Cells/TableRowCell.css';
|
composes: cell from '~Components/Table/Cells/TableRowCell.css';
|
||||||
|
|
||||||
width: 20px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,7 @@ namespace NzbDrone.Core.Configuration
|
||||||
|
|
||||||
public string Branch => GetValue("Branch", "develop").ToLowerInvariant();
|
public string Branch => GetValue("Branch", "develop").ToLowerInvariant();
|
||||||
|
|
||||||
public string LogLevel => GetValue("LogLevel", "Info");
|
public string LogLevel => GetValue("LogLevel", "info");
|
||||||
public string ConsoleLogLevel => GetValue("ConsoleLogLevel", string.Empty, persist: false);
|
public string ConsoleLogLevel => GetValue("ConsoleLogLevel", string.Empty, persist: false);
|
||||||
public bool FilterSentryEvents => GetValueBoolean("FilterSentryEvents", true, persist: false);
|
public bool FilterSentryEvents => GetValueBoolean("FilterSentryEvents", true, persist: false);
|
||||||
|
|
||||||
|
|
|
@ -51,18 +51,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
||||||
|
|
||||||
private IEnumerable<DownloadClientItem> GetQueue()
|
private IEnumerable<DownloadClientItem> GetQueue()
|
||||||
{
|
{
|
||||||
SabnzbdQueue sabQueue;
|
var sabQueue = _proxy.GetQueue(0, 0, Settings);
|
||||||
|
|
||||||
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 queueItems = new List<DownloadClientItem>();
|
var queueItems = new List<DownloadClientItem>();
|
||||||
|
|
||||||
foreach (var sabQueueItem in sabQueue.Items)
|
foreach (var sabQueueItem in sabQueue.Items)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue