This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
plugins/plugin-client-common/src/components/Client Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import React from 'react'
18
18
import { encodeComponent , i18n , pexecInCurrentTab } from '@kui-shell/core'
19
19
import { PageSidebar } from '@patternfly/react-core'
20
20
21
+ import CommonProps from './props/Common'
21
22
import BrandingProps from './props/Branding'
22
23
import GuidebookProps , { isGuidebook , isMenu , MenuItem } from './props/Guidebooks'
23
24
@@ -30,7 +31,8 @@ const NavExpandable = React.lazy(() => import('@patternfly/react-core').then(_ =
30
31
31
32
const strings = i18n ( 'plugin-client-common' )
32
33
33
- type Props = BrandingProps &
34
+ type Props = Pick < CommonProps , 'noTopTabs' > &
35
+ BrandingProps &
34
36
GuidebookProps & {
35
37
/** unfurled? */
36
38
isOpen : boolean
@@ -92,7 +94,12 @@ export default class Sidebar extends React.PureComponent<Props, State> {
92
94
className = "kui--sidebar-nav-item"
93
95
isActive = { this . props . indicateActiveItem && ( _ . notebook === this . currentGuidebook || thisIsTheFirstNavItem ) }
94
96
onClick = { ( ) => {
95
- pexecInCurrentTab ( `${ this . props . guidebooksCommand || 'replay' } ${ encodeComponent ( _ . filepath ) } ` )
97
+ const quiet = ! this . props . noTopTabs
98
+ pexecInCurrentTab (
99
+ `${ this . props . guidebooksCommand || 'replay' } ${ encodeComponent ( _ . filepath ) } ` ,
100
+ undefined ,
101
+ quiet
102
+ )
96
103
this . setState ( { currentGuidebook : _ . notebook } )
97
104
} }
98
105
>
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ export default class TabContainer extends React.PureComponent<Props, State> {
351
351
version = { this . props . version }
352
352
isOpen = { this . state . isSidebarOpen }
353
353
toggleOpen = { this . toggleSidebar }
354
+ noTopTabs = { this . props . noTopTabs }
354
355
guidebooks = { this . props . guidebooks }
355
356
productName = { this . props . productName }
356
357
indicateActiveItem = { ! ! this . props . noTopTabs }
You can’t perform that action at this time.
0 commit comments