MainTabs: show red on daemon missing

fixes #2238
This commit is contained in:
Thomas Gelf 2020-11-30 18:00:52 +01:00
parent bca77fdca9
commit 0788742387
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ next (will be 1.8.0)
* FEATURE: Hint and Error styling has been unified and improved * FEATURE: Hint and Error styling has been unified and improved
* FEATURE: Form field rendering for sets now deals with invalid values * FEATURE: Form field rendering for sets now deals with invalid values
* FEATURE: Better descriptions for time-based and other fields (#1897, #1264) * FEATURE: Better descriptions for time-based and other fields (#1897, #1264)
* FEATURE: Daemon tab now gets red instead of yellow when not running (#2238)
### Translations ### Translations
* FEATURE: Italian is now available (#2080) * FEATURE: Italian is now available (#2080)

View File

@ -55,7 +55,7 @@ class MainTabs extends Tabs
if ($daemon->isRunning()) { if ($daemon->isRunning()) {
$state = 'ok'; $state = 'ok';
} else { } else {
$state = 'warning'; $state = 'critical';
} }
} catch (\Exception $e) { } catch (\Exception $e) {
$state = 'unknown'; $state = 'unknown';