cleaned up delete

This commit is contained in:
ari committed 2021-12-02 09:57:35 -05:00
1 parent 6e8e409a89
commit d0bc01d2f1
3 files changed
+3 -2

No files matched your search

@@ -100,7 +100,7 @@ export const ConditionNode: FC<{
<button className={p.isRoot ? classes.deleteBtnRoot : classes.deleteBtn} onClick={p?.onClick}>X</button>
return <div className={classes.root}>
{(showDelete || !effectiveDM) && <DeleteButton isRoot onClick={() => onDelete('root')} />}
{(showDelete && !effectiveDM) && <DeleteButton isRoot onClick={() => onDelete('root')} />}
<div className={classes.title}>
<InputList
label=""
@@ -129,6 +129,7 @@ export const LogicViewer: Editor<LogicCondition> = ({
condition={c}
displayMode={false}
{...genUpdateMethods(condition, onChange)(i)}
showDelete
/>
})}
</>
@@ -22,6 +22,6 @@ export const ConditionEditor: FC<{
onUpdate(update)
}}
displayMode
showDelete
showDelete={false}
/>
}