add connectionStatus state and component

This commit is contained in:
riqo 2021-06-23 08:48:58 -05:00
commit e13f90a6cc
6 changed files with 39 additions and 4 deletions

View file

@ -2,9 +2,11 @@
import { ref } from "vue";
export const isAlive = ref(false);
export const loading = ref(true);
export const setConnectionStatus: IpcListenerCallback<boolean | null> = (payload) => {
console.log('received payload', payload)
if (payload) {
isAlive.value = payload;
} else {