Skip to content

Commit 0468c90

Browse files
committed
chore: rename prop in LogResizeButton
1 parent 7d1ce96 commit 0468c90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Shared/Components/CICDHistory/History.components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import './cicdHistory.scss'
3838
export const LogResizeButton = withShortcut(
3939
({
4040
shortcutCombo = ['F'],
41-
onlyOnLogs = true,
41+
showOnlyWhenPathIncludesLogs = true,
4242
fullScreenView,
4343
setFullScreenView,
4444
shortcut,
@@ -50,7 +50,7 @@ export const LogResizeButton = withShortcut(
5050
setFullScreenView(!fullScreenView)
5151
}, [fullScreenView])
5252

53-
const showButton = pathname.includes('/logs') || !onlyOnLogs
53+
const showButton = !showOnlyWhenPathIncludesLogs || pathname.includes('/logs')
5454
const doesShortcutContainCmdKey = shortcutCombo.some((key) => key === 'Control') && IS_PLATFORM_MAC_OS
5555

5656
useEffect(() => {

src/Shared/Components/CICDHistory/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export enum FetchIdDataStatus {
4848

4949
export interface LogResizeButtonType {
5050
shortcutCombo?: SupportedKeyboardKeysType[]
51-
onlyOnLogs?: boolean
51+
showOnlyWhenPathIncludesLogs?: boolean
5252
fullScreenView: boolean
5353
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>
5454
}

0 commit comments

Comments
 (0)