added a check to disable run button when all categories are unchecked

pull/5370/head
tizah 4 years ago committed by Liana Husikyan
parent 05ad96bcb3
commit 76ccc55774
  1. 3
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -302,7 +302,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
label="Autorun"
onChange={() => {}}
/>
<Button buttonText="Run" onClick={() => run(state.data, state.source, state.file)} disabled={state.data === null}/>
{console.log({categoryIndex})}
<Button buttonText="Run" onClick={() => run(state.data, state.source, state.file)} disabled={state.data === null || categoryIndex.length === 0 }/>
</div>
</div>
<div id="staticanalysismodules" className="list-group list-group-flush">

Loading…
Cancel
Save