forked from cockpit/cockpit
Alice Brooks
416aa9163d
- suse_docs.patch: update documentation to point at new links (bsc#1226050) - remove_rh_links.patch: remove additional hardcoded RH refs (bsc#1221336) - hide-pcp.patch: correct patch to properly disable pcp on micro (bsc#1226049) - suse-microos-branding.patch: use suse ID as branding instead of sle-micro (bsc#1227441)
35 lines
1.9 KiB
Diff
35 lines
1.9 KiB
Diff
Index: cockpit/pkg/metrics/metrics.jsx
|
|
===================================================================
|
|
--- cockpit.orig/pkg/metrics/metrics.jsx
|
|
+++ cockpit/pkg/metrics/metrics.jsx
|
|
@@ -1565,6 +1565,7 @@ const PCPConfig = ({ buttonVariant, firewalldRequest, needsLogout, setNeedsLogou
|
|
|
|
return (
|
|
<Button variant={buttonVariant} icon={<CogIcon />}
|
|
+ className="pf-u-display-none"
|
|
isDisabled={ invalidService(s_pmlogger) || invalidService(s_pmproxy) ||
|
|
invalidService(s_redis) || invalidService(s_redis_server) || invalidService(s_valkey) }
|
|
onClick={show_dialog}>
|
|
Index: cockpit-309/pkg/metrics/metrics.jsx
|
|
===================================================================
|
|
--- cockpit-309.orig/pkg/metrics/metrics.jsx
|
|
+++ cockpit-309/pkg/metrics/metrics.jsx
|
|
@@ -1824,7 +1825,8 @@ class MetricsHistory extends React.Component {
|
|
// on a single machine, cockpit-pcp depends on pcp; but this may not be the case in the beiboot scenario,
|
|
// so additionally check if pcp is available on the logged in target machine
|
|
if ((cockpit.manifests && !cockpit.manifests.pcp) || this.pmlogger_service.exists === false)
|
|
- return <EmptyStatePanel
|
|
+ return <EmptyStatePanel />
|
|
+/* return <EmptyStatePanel
|
|
icon={ExclamationCircleIcon}
|
|
title={_("Package cockpit-pcp is missing for metrics history")}
|
|
action={this.state.isBeibootBridge === true
|
|
@@ -1834,6 +1834,7 @@ class MetricsHistory extends React.Component {
|
|
? <Text>{ _("Installation not supported without installed cockpit package") }</Text>
|
|
: this.state.packagekitExists && <Button onClick={this.handleInstall}>{_("Install cockpit-pcp")}</Button>}
|
|
/>;
|
|
+*/
|
|
|
|
if (!this.state.metricsAvailable) {
|
|
let action;
|