-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: Warn if not connected to Insights
- Loading branch information
1 parent
22825df
commit 85df0ec
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -545,6 +545,22 @@ PageServer.prototype = { | |
refresh_os_updates_state(); | ||
}); | ||
|
||
var insights_client_timer = service.proxy("insights-client.timer"); | ||
|
||
function refresh_insights_status() { | ||
if (insights_client_timer.exists && !insights_client_timer.enabled) { | ||
$("#insights_icon").attr("class", "pficon pficon-warning-triangle-o"); | ||
set_page_link("#insights_text", "subscriptions", | ||
_("Not connected to Insights")); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
andreasn
Contributor
|
||
$("#insights_icon, #insights_text").show(); | ||
} else { | ||
$("#insights_icon, #insights_text").hide(); | ||
} | ||
} | ||
|
||
$(insights_client_timer).on("changed", refresh_insights_status); | ||
refresh_insights_status(); | ||
|
||
// Only link from graphs to available pages | ||
set_page_link("#link-disk", "storage", _("Disk I/O")); | ||
set_page_link("#link-network", "network", _("Network Traffic")); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@andreasn Should this be similar text to what we display in motd?