Skip to content

Commit

Permalink
fix study chapter orientation - closes #16331
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Nov 5, 2024
1 parent c2aea79 commit db9f978
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/analyse/src/study/chapterNewForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,11 @@ export function view(ctrl: StudyChapterNewForm): VNode {
ctrl.editor?.setOrientation((e.target as HTMLInputElement).value as Color),
),
},
[activeTab === 'pgn' && i18n.study.automatic, i18n.site.white, i18n.site.black].map(
c => c && option(c, currentChapter.setup.orientation, c),
),
[
...(activeTab === 'pgn' ? [['automatic', i18n.study.automatic]] : []),
['white', i18n.site.white],
['black', i18n.site.black],
].map(([value, name]) => value && option(value, currentChapter.setup.orientation, name)),
),
]),
]),
Expand Down

0 comments on commit db9f978

Please sign in to comment.