mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-13 02:20:06 -04:00
Update NavBar.svelte
This commit is contained in:
parent
6ad419451e
commit
809759c4eb
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
import SearchFieldMini from './SearchFieldMini.svelte'
|
import SearchFieldMini from './SearchFieldMini.svelte'
|
||||||
import CreatePlaylistButton from './CreatePlaylistButton.svelte'
|
import CreatePlaylistButton from './CreatePlaylistButton.svelte'
|
||||||
import { goto } from '$app/navigation'
|
import { goto } from '$app/navigation'
|
||||||
|
import { page } from '$app/stores'
|
||||||
|
|
||||||
export let withSearch = false
|
export let withSearch = false
|
||||||
|
|
||||||
|
@ -113,7 +114,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<CreatePlaylistButton on:click="{() => goto('/')}" />
|
<CreatePlaylistButton on:click="{() => {if($page.url.pathname !== '/') {goto('/')}}}" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue