mirror of
https://github.com/cupcakearmy/ora.git
synced 2024-11-01 00:34:11 +01:00
disable nav in options
This commit is contained in:
parent
4dbfe6f038
commit
28d97ced68
@ -25,7 +25,7 @@
|
|||||||
"scripts": ["./src/background/index.js"]
|
"scripts": ["./src/background/index.js"]
|
||||||
},
|
},
|
||||||
"options_ui": {
|
"options_ui": {
|
||||||
"page": "./src/dashboard/index.html#/options"
|
"page": "./src/dashboard/index.html#/options?nav=false"
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import Router, { link } from 'svelte-spa-router'
|
import Router, { link, querystring } from 'svelte-spa-router'
|
||||||
|
|
||||||
import Toasts from './components/Toasts.svelte'
|
import Toasts from './components/Toasts.svelte'
|
||||||
import Dev from './components/Dev.svelte'
|
import Dev from './components/Dev.svelte'
|
||||||
@ -15,20 +15,21 @@
|
|||||||
'/options': Options,
|
'/options': Options,
|
||||||
'/limits': Limits,
|
'/limits': Limits,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: nav = new URLSearchParams($querystring).get('nav') !== 'false'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if isDev}
|
{#if isDev}
|
||||||
<Dev />
|
<Dev />
|
||||||
{/if}
|
{/if}
|
||||||
<main>
|
<main>
|
||||||
<div class="mb-8">
|
{#if nav}
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
<div class="mb-8">
|
||||||
<a use:link={'/'}><button class="btn">Dashboard</button></a>
|
<a use:link href="/"><button class="btn">Dashboard</button></a>
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
<a use:link href="/limits"><button class="btn">Limits</button></a>
|
||||||
<a use:link={'/limits'}><button class="btn">Limits</button></a>
|
<a use:link href="/options"><button class="btn">Options</button></a>
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
</div>
|
||||||
<a use:link={'/options'}><button class="btn">Options</button></a>
|
{/if}
|
||||||
</div>
|
|
||||||
|
|
||||||
<Router {routes} />
|
<Router {routes} />
|
||||||
<Toasts />
|
<Toasts />
|
||||||
|
Loading…
Reference in New Issue
Block a user