don't render at all when tab not selected
This commit is contained in:
parent
381d497a15
commit
277eb9e7a0
@ -13,9 +13,10 @@
|
|||||||
<div class:hide={activeTab !== 'json'}>
|
<div class:hide={activeTab !== 'json'}>
|
||||||
<JsonOutput />
|
<JsonOutput />
|
||||||
</div>
|
</div>
|
||||||
<div class:hide={activeTab !== 'print'}>
|
|
||||||
|
{#if activeTab === 'print'}
|
||||||
<PrintOutput ship={$state}/>
|
<PrintOutput ship={$state}/>
|
||||||
</div>
|
{/if}
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user