File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Shared/Components/CICDHistory Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import './cicdHistory.scss'
38
38
export const LogResizeButton = withShortcut (
39
39
( {
40
40
shortcutCombo = [ 'F' ] ,
41
- onlyOnLogs = true ,
41
+ showOnlyWhenPathIncludesLogs = true ,
42
42
fullScreenView,
43
43
setFullScreenView,
44
44
shortcut,
@@ -50,7 +50,7 @@ export const LogResizeButton = withShortcut(
50
50
setFullScreenView ( ! fullScreenView )
51
51
} , [ fullScreenView ] )
52
52
53
- const showButton = pathname . includes ( '/logs' ) || ! onlyOnLogs
53
+ const showButton = ! showOnlyWhenPathIncludesLogs || pathname . includes ( '/logs' )
54
54
const doesShortcutContainCmdKey = shortcutCombo . some ( ( key ) => key === 'Control' ) && IS_PLATFORM_MAC_OS
55
55
56
56
useEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export enum FetchIdDataStatus {
48
48
49
49
export interface LogResizeButtonType {
50
50
shortcutCombo ?: SupportedKeyboardKeysType [ ]
51
- onlyOnLogs ?: boolean
51
+ showOnlyWhenPathIncludesLogs ?: boolean
52
52
fullScreenView : boolean
53
53
setFullScreenView : React . Dispatch < React . SetStateAction < boolean > >
54
54
}
You can’t perform that action at this time.
0 commit comments