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'}>
|
||||
<JsonOutput />
|
||||
</div>
|
||||
<div class:hide={activeTab !== 'print'}>
|
||||
|
||||
{#if activeTab === 'print'}
|
||||
<PrintOutput ship={$state}/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</main>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user