mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 00:22:08 +00:00
fix: syncronize changes from navbar to sidebar
This commit is contained in:
parent
af252401ed
commit
ed5dfd6899
1 changed files with 14 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
import { toast } from 'svelte-sonner'
|
import { toast } from 'svelte-sonner'
|
||||||
import { click } from '@/modules/click.js'
|
import { click } from '@/modules/click.js'
|
||||||
import { logout } from './Logout.svelte'
|
import { logout } from './Logout.svelte'
|
||||||
|
import { rss } from '@/views/TorrentSearch/TorrentModal.svelte'
|
||||||
import IPC from '@/modules/ipc.js'
|
import IPC from '@/modules/ipc.js'
|
||||||
const view = getContext('view')
|
const view = getContext('view')
|
||||||
export let page
|
export let page
|
||||||
|
|
@ -32,6 +33,8 @@
|
||||||
{
|
{
|
||||||
click: () => {
|
click: () => {
|
||||||
page = 'home'
|
page = 'home'
|
||||||
|
$view = null
|
||||||
|
$rss = null
|
||||||
},
|
},
|
||||||
page: 'home',
|
page: 'home',
|
||||||
icon: 'home',
|
icon: 'home',
|
||||||
|
|
@ -48,6 +51,8 @@
|
||||||
{
|
{
|
||||||
click: () => {
|
click: () => {
|
||||||
page = 'schedule'
|
page = 'schedule'
|
||||||
|
$view = null
|
||||||
|
$rss = null
|
||||||
},
|
},
|
||||||
page: 'schedule',
|
page: 'schedule',
|
||||||
icon: 'search',
|
icon: 'search',
|
||||||
|
|
@ -55,7 +60,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
click: () => {
|
click: () => {
|
||||||
|
if (!($view === null)) {
|
||||||
|
$view = null
|
||||||
|
return
|
||||||
|
}
|
||||||
if ($media) $view = $media.media
|
if ($media) $view = $media.media
|
||||||
|
$rss = null
|
||||||
},
|
},
|
||||||
icon: 'queue_music',
|
icon: 'queue_music',
|
||||||
text: 'Now Playing'
|
text: 'Now Playing'
|
||||||
|
|
@ -63,6 +73,8 @@
|
||||||
{
|
{
|
||||||
click: () => {
|
click: () => {
|
||||||
page = 'watchtogether'
|
page = 'watchtogether'
|
||||||
|
$view = null
|
||||||
|
$rss = null
|
||||||
},
|
},
|
||||||
page: 'watchtogether',
|
page: 'watchtogether',
|
||||||
icon: 'groups',
|
icon: 'groups',
|
||||||
|
|
@ -79,6 +91,8 @@
|
||||||
{
|
{
|
||||||
click: () => {
|
click: () => {
|
||||||
page = 'settings'
|
page = 'settings'
|
||||||
|
$view = null
|
||||||
|
$rss = null
|
||||||
},
|
},
|
||||||
css: 'mt-auto',
|
css: 'mt-auto',
|
||||||
page: 'settings',
|
page: 'settings',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue