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