You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
7 months ago
|
From a0a076d4b2b5770c35c63fff4e5ed80abd5fade9 Mon Sep 17 00:00:00 2001
|
||
|
From: Eugene Zamriy <ezamriy@msvsphere-os.ru>
|
||
|
Date: Tue, 21 Nov 2023 00:48:25 +0300
|
||
|
Subject: [PATCH 6/6] Disable upstream documentation links
|
||
|
|
||
|
---
|
||
|
pkg/shell/topnav.jsx | 16 ----------------
|
||
|
1 file changed, 16 deletions(-)
|
||
|
|
||
|
diff --git a/pkg/shell/topnav.jsx b/pkg/shell/topnav.jsx
|
||
|
index e1a8e4c66..111563118 100644
|
||
|
--- a/pkg/shell/topnav.jsx
|
||
|
+++ b/pkg/shell/topnav.jsx
|
||
|
@@ -152,22 +152,6 @@ export class TopNav extends React.Component {
|
||
|
{cockpit.format(_("$0 documentation"), this.state.osRelease.MSVSPHERE_PRETTY_NAME)}
|
||
|
</DropdownItem>);
|
||
|
|
||
|
- // global documentation for cockpit as a whole
|
||
|
- (cockpit.manifests.shell?.docs ?? []).forEach(doc => {
|
||
|
- docItems.push(<DropdownItem key={doc.label} href={doc.url} target="blank" rel="noopener noreferrer" icon={<ExternalLinkAltIcon />}>
|
||
|
- {doc.label}
|
||
|
- </DropdownItem>);
|
||
|
- });
|
||
|
-
|
||
|
- if (docs.length > 0)
|
||
|
- docItems.push(<DropdownSeparator key="separator" />);
|
||
|
-
|
||
|
- docs.forEach(e => {
|
||
|
- docItems.push(<DropdownItem key={e.label} href={e.url} target="blank" rel="noopener noreferrer" icon={<ExternalLinkAltIcon />}>
|
||
|
- {_(e.label)}
|
||
|
- </DropdownItem>);
|
||
|
- });
|
||
|
-
|
||
|
docItems.push(<DropdownSeparator key="separator1" />);
|
||
|
docItems.push(<DropdownItem key="about" component="button"
|
||
|
onClick={() => Dialogs.show(<AboutCockpitModal />)}>
|
||
|
--
|
||
|
2.43.0
|
||
|
|