add connectionStatus state and component
This commit is contained in:
parent
81b4d018fb
commit
e13f90a6cc
6 changed files with 39 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue