diff --git a/packages/freesewing.shared/components/workbench/menu/design-options/option.js b/packages/freesewing.shared/components/workbench/menu/design-options/option.js index 842ce0c773d..a58d7d96705 100644 --- a/packages/freesewing.shared/components/workbench/menu/design-options/option.js +++ b/packages/freesewing.shared/components/workbench/menu/design-options/option.js @@ -20,7 +20,38 @@ const values = { } ) - } + }, + bool: props => { + const dflt = props.pattern.config.options[props.option].bool + const current = props.gist?.options?.[props.option] + return ( + + {props.gist?.options?.[props.option] + ? props.app.t('app.yes') + : props.app.t('app.no') + } + + ) + }, + count: props => { + return

No val yet

+ }, + deg: props => { + return

No val yet

+ }, + list: props => { + return

No val yet

+ }, + mm: props => { + return

No val yet

+ }, + constant: props => { + return

No val yet

+ }, } const Tmp = props =>

not yet

@@ -41,6 +72,51 @@ const Option = props => { const Input = inputs[type] const Value = values[type] + const toggleBoolean = () => { + const dflt = props.pattern.config.options[props.option].bool + const current = props.gist?.options?.[props.option] + if (typeof current === 'undefined') + props.updateGist(['options', props.option], !dflt) + else props.unsetGist(['options', props.option]) + + } + + if (type === 'bool') return ( +
  • + +
  • + + ) + return (