add ui:showSidebarToggle
config
This commit is contained in:
parent
ad8e6315ed
commit
e7615879e4
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
<script>
|
||||
import { HashIcon, MenuIcon } from "svelte-feather-icons";
|
||||
import { getItem } from "../storage";
|
||||
import { overlayStore, showSidebar } from "../stores";
|
||||
|
||||
export let channel;
|
||||
|
@ -12,8 +13,8 @@
|
|||
</style>
|
||||
|
||||
<div class="top-bar">
|
||||
{#if !$showSidebar}
|
||||
<button class="icon-button menu-button" on:click="{ () => showSidebar.set(true) }">
|
||||
{#if !$showSidebar || getItem("ui:showSidebarToggle")}
|
||||
<button class="icon-button menu-button" on:click="{ () => showSidebar.set(!showSidebar.value) }">
|
||||
<MenuIcon />
|
||||
</button>
|
||||
{/if}
|
||||
|
|
|
@ -7,7 +7,8 @@ const defaults = {
|
|||
"state:openChannelId": -1,
|
||||
"log:Gateway": false,
|
||||
"log:Store": false,
|
||||
"ui:stateful:presistSelectedChannel": true
|
||||
"ui:stateful:presistSelectedChannel": true,
|
||||
"ui:showSidebarToggle": false
|
||||
};
|
||||
const store = new Map(Object.entries(defaults));
|
||||
const persistentProvider = localStorage;
|
||||
|
|
Loading…
Reference in a new issue