File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -558,10 +558,10 @@ ProofTree.prototype.image = function (root) {
558558 let applicables = applicableLK ( this . conclusion ) . map ( x => x . name )
559559 box . querySelectorAll ( 'button' ) . forEach ( but => {
560560 if ( but . value === "Z3Rule" ) { return }
561- if ( but . value === "WeakeningLeft" ) { return }
562- if ( but . value === "WeakeningRight" ) { return }
563- if ( but . value === "ContractionLeft" ) { return }
564- if ( but . value === "ContractionRight" ) { return }
561+ if ( but . value === "WeakeningLeft" ) { if ( this . conclusion . precedents . length > 0 ) { return } else { but . remove ( ) } }
562+ if ( but . value === "WeakeningRight" ) { if ( this . conclusion . antecedents . length > 0 ) { return } else { but . remove ( ) } }
563+ if ( but . value === "ContractionLeft" ) { if ( this . conclusion . precedents . length > 0 ) { return } else { but . remove ( ) } }
564+ if ( but . value === "ContractionRight" ) { if ( this . conclusion . antecedents . length > 0 ) { return } else { but . remove ( ) } }
565565 if ( but . value === "'Auto'" ) { return }
566566 if ( ! applicables . includes ( but . value ) ) { but . remove ( ) }
567567 } )
You can’t perform that action at this time.
0 commit comments