mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
datetime: Disable diagnostics when no tests are available
Closes: #1846 Tests: - When systemd-timesyncd is running, 'Run Diagnostics' button is shown and two diagnostics results are shown. The two results appears on the diagnostics app results too. - When systemd-timesyncd is not running, 'Run Diagnostics' button is not shown. Datetime app is not included the diagnostics app page results. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
1b6c2e60c0
commit
b1fd0c93dc
@ -87,6 +87,10 @@ class DateTimeApp(app_module.App):
|
||||
|
||||
return results
|
||||
|
||||
def has_diagnostics(self):
|
||||
"""Return that app has diagnostics only when time is managed."""
|
||||
return self._is_time_managed()
|
||||
|
||||
|
||||
def init():
|
||||
"""Initialize the date/time module."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user