File tree Expand file tree Collapse file tree
packages/viewer/src/components/Dev Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 const { spaces, properties, theorems, traits } = context ()
88
9- let showRedundancy = defaultStorage .getItem (' showRedundancy' ) != null
9+ let showRedundancy = defaultStorage .getItem (' showRedundancy' ) !== null
1010 $ : showRedundancy
11- ? defaultStorage .setItem (' showRedundancy' , ' ' )
11+ ? defaultStorage .setItem (' showRedundancy' , ' show ' )
1212 : defaultStorage .removeItem (' showRedundancy' )
1313 </script >
1414
4040 <button type ="button" class ="btn btn-outline-dark" on:click ={reset }>
4141 Reset
4242 </button >
43- <button
44- type =" button"
45- class =" btn btn-outline-dark"
46- class:btn-info ={showRedundancy }
47- on:click ={() => (showRedundancy = ! showRedundancy )}
48- >
49- {showRedundancy ? ' Show redundancy' : ' Hide redundancy' }
50- </button >
43+ </td >
44+ </tr >
45+ <tr >
46+ <td colspan =" 2" >
47+ <input
48+ id =" redundancyCheckbox"
49+ type =" checkbox"
50+ bind:checked ={showRedundancy }
51+ />
52+ <label for =" redundancyCheckbox" > Show redundancies in tables </label >
5153 </td >
5254 </tr >
5355 </tbody >
You can’t perform that action at this time.
0 commit comments