Skip to content

Commit

Permalink
Add clone options for flipbook/multiframe drawing tasks. (#6996)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieftrav authored Feb 21, 2024
1 parent 207de93 commit b62c0e3
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import React from 'react'
export default function FemMultiImageSubjectLayoutEditor ({
workflow = null
}) {
function toggleCloneMarks (e) {
return workflow.update({
'configuration.multi_image_clone_markers': e.target.checked
})
}

function toggleEnableSwitching (e) {
return workflow.update({
'configuration.enable_switching_flipbook_and_separate': e.target.checked
Expand Down Expand Up @@ -33,6 +39,8 @@ export default function FemMultiImageSubjectLayoutEditor ({
const enableAutoplayChecked = !!workflow?.configuration?.flipbook_autoplay
const iterations = workflow?.configuration?.playIterations >= 0 ? workflow.configuration.playIterations : 3
const layout = workflow?.configuration?.multi_image_layout || 'col'
const cloneMarksChecked = !!workflow?.configuration?.multi_image_clone_markers


return (
<div className='multi-image-subject-layout-editor'>
Expand Down Expand Up @@ -68,6 +76,17 @@ export default function FemMultiImageSubjectLayoutEditor ({
Allow Separate Frames View - <small>volunteers can choose flipbook or a separate frames view</small>
</label>
</div>

<div>
<label>
<input
type='checkbox'
checked={cloneMarksChecked}
onChange={toggleCloneMarks}
/>
Clone marks in all frames - <small>for drawing tasks</small>
</label>
</div>

{enableSwitchingChecked && <div>
<br />
Expand Down

0 comments on commit b62c0e3

Please sign in to comment.