UPD: OFFLINE State

This commit is contained in:
Robert Kossessa
2024-02-05 00:44:46 +01:00
parent ae25ff6fd4
commit e5cc9875fe
6 changed files with 75 additions and 14 deletions

View File

@@ -56,7 +56,11 @@
</div>
<div class="grow" />
<MenubarMenu>
<MenubarTrigger class="app-titlebar-button text-muted-foreground border-2">Disconnect</MenubarTrigger>
<MenubarTrigger
class="app-titlebar-button text-muted-foreground border-2"
@click="store.setConnected(!store.connected)">
{{ store.connected ? 'Disconnect' : 'Connect' }}
</MenubarTrigger>
</MenubarMenu>
<div class="flex h-full">
<button
@@ -90,9 +94,11 @@ import {
} from '@/components/ui/menubar/index.js'
import ScrambleText from '@/components/common/ScrambleText.vue'
import { X, Square, Minus } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import { ref } from 'vue'
import { Separator } from '@/components/ui/separator'
import { useStore } from '@/store'
const store = useStore()
const resizeable = ref(false)