@@ -30,7 +30,7 @@ import { Toolbar, ToolbarContent, ToolbarItem } from "@patternfly/react-core/dis
30
30
import { CogIcon , ExternalLinkAltIcon , HelpIcon } from '@patternfly/react-icons' ;
31
31
32
32
import { ShellState } from "./state" ;
33
- import { ManifestDocs , ManifestParentSection , import_ShellManifest } from "./manifests" ;
33
+ import { ManifestDocs , ManifestParentSection } from "./manifests" ;
34
34
import { ActivePagesDialog } from "./active-pages-modal.jsx" ;
35
35
import { CredentialsModal } from './credentials.jsx' ;
36
36
import { AboutCockpitModal , LangModal , OopsModal } from "./shell-modals.jsx" ;
@@ -150,7 +150,7 @@ export class TopNav extends React.Component {
150
150
{ cockpit . format ( _ ( "$0 documentation" ) , this . state . osRelease . NAME ) }
151
151
</ DropdownItem > ) ;
152
152
153
- const shell_manifest = import_ShellManifest ( cockpit . manifests . shell || { } ) ;
153
+ const shell_manifest = this . props . state . config . manifest ;
154
154
155
155
// global documentation for cockpit as a whole
156
156
( shell_manifest . docs ?? [ ] ) . forEach ( doc => {
@@ -208,7 +208,7 @@ export class TopNav extends React.Component {
208
208
209
209
if ( shell_manifest . locales )
210
210
main_menu . push ( < DropdownItem key = "languages" className = "display-language-menu"
211
- onClick = { ( ) => Dialogs . run ( LangModal , { } ) } >
211
+ onClick = { ( ) => Dialogs . run ( LangModal , { state : this . props . state } ) } >
212
212
{ _ ( "Display language" ) }
213
213
</ DropdownItem > ) ;
214
214
0 commit comments