diff options
author | 2023-08-31 15:38:12 +0200 | |
---|---|---|
committer | 2023-08-31 15:52:30 +0200 | |
commit | 4ba22718cce29f784f97e8a74733e53e15a1e4e4 (patch) | |
tree | 714240e902eb2843d94035eb377e3c38ddac95f1 /subprojects/frontend/src/theme | |
parent | refactor(frontend): compact relation table (diff) | |
download | refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.tar.gz refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.tar.zst refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.zip |
refactor(frontend): secondary pane switch shortcut
Diffstat (limited to 'subprojects/frontend/src/theme')
-rw-r--r-- | subprojects/frontend/src/theme/ThemeStore.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/frontend/src/theme/ThemeStore.ts b/subprojects/frontend/src/theme/ThemeStore.ts index fa47d873..12449b94 100644 --- a/subprojects/frontend/src/theme/ThemeStore.ts +++ b/subprojects/frontend/src/theme/ThemeStore.ts | |||
@@ -91,8 +91,8 @@ export default class ThemeStore { | |||
91 | return 'code'; | 91 | return 'code'; |
92 | } | 92 | } |
93 | 93 | ||
94 | setSelectedPane(pane: SelectedPane): void { | 94 | setSelectedPane(pane: SelectedPane, keepCode = true): void { |
95 | this.showCode = pane === 'code'; | 95 | this.showCode = pane === 'code' || (keepCode && this.showCode); |
96 | this.showGraph = pane === 'graph'; | 96 | this.showGraph = pane === 'graph'; |
97 | this.showTable = pane === 'table'; | 97 | this.showTable = pane === 'table'; |
98 | } | 98 | } |