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
From 912ee633e6320b5cfa5a346899f29721be7d08cb Mon Sep 17 00:00:00 2001
|
|
From: tigro <tigro@msvsphere-os.ru>
|
|
Date: Thu, 17 Oct 2024 13:13:06 +0300
|
|
Subject: [PATCH] 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 79aaf2a84..4559d1ed8 100644
|
|
--- a/pkg/shell/topnav.jsx
|
|
+++ b/pkg/shell/topnav.jsx
|
|
@@ -154,22 +154,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} to={doc.url} target="blank" rel="noopener noreferrer" icon={<ExternalLinkAltIcon />}>
|
|
- {doc.label}
|
|
- </DropdownItem>);
|
|
- });
|
|
-
|
|
- if (docs.length > 0)
|
|
- docItems.push(<Divider key="separator" />);
|
|
-
|
|
- docs.forEach(e => {
|
|
- docItems.push(<DropdownItem key={e.label} to={e.url} target="blank" rel="noopener noreferrer" icon={<ExternalLinkAltIcon />}>
|
|
- {_(e.label)}
|
|
- </DropdownItem>);
|
|
- });
|
|
-
|
|
docItems.push(<Divider key="separator1" />);
|
|
docItems.push(<DropdownItem key="about" component="button"
|
|
onClick={() => Dialogs.run(AboutCockpitModal, {})}>
|
|
--
|
|
2.47.0
|
|
|