diff --git a/src/components/MenuBar.vue b/src/components/MenuBar.vue index ad6683c..11e89c2 100644 --- a/src/components/MenuBar.vue +++ b/src/components/MenuBar.vue @@ -15,14 +15,16 @@ >glogger
@@ -185,6 +187,22 @@ const dataBrowserStore = useDataBrowserStore(); const isPlayerLogTailing = computed(() => coordinatorStore.isPlayerLogTailing); const isChatLogTailing = computed(() => coordinatorStore.isChatLogTailing); +async function togglePlayerLog() { + if (isPlayerLogTailing.value) { + await coordinatorStore.stopPlayerTailing(); + } else { + await coordinatorStore.startPlayerTailing(); + } +} + +async function toggleChatLog() { + if (isChatLogTailing.value) { + await coordinatorStore.stopChatTailing(); + } else { + await coordinatorStore.startChatTailing(); + } +} + const navItems: { view: AppView; label: string }[] = [ { view: "dashboard", label: "Dashboard" }, { view: "character", label: "Character" },