added hideControls setting

This commit is contained in:
Gani Georgiev
2022-08-18 17:10:42 +03:00
parent cfaff31d97
commit 7be389704d
9 changed files with 72 additions and 40 deletions
@@ -1,4 +1,5 @@
<script>
import { hideControls } from "@/stores/app";
import { collections, activeCollection } from "@/stores/collections";
import CollectionUpsertPanel from "@/components/collections/CollectionUpsertPanel.svelte";
@@ -63,12 +64,14 @@
{/each}
</div>
<footer class="sidebar-footer">
<button type="button" class="btn btn-block btn-outline" on:click={() => collectionPanel?.show()}>
<i class="ri-add-line" />
<span class="txt">New collection</span>
</button>
</footer>
{#if !$hideControls}
<footer class="sidebar-footer">
<button type="button" class="btn btn-block btn-outline" on:click={() => collectionPanel?.show()}>
<i class="ri-add-line" />
<span class="txt">New collection</span>
</button>
</footer>
{/if}
</aside>
<CollectionUpsertPanel bind:this={collectionPanel} />