add profile, messages, and connectionStatus shared state

This commit is contained in:
riqo 2021-06-23 08:11:36 -05:00
commit 81b4d018fb
9 changed files with 44 additions and 17 deletions

View file

@ -0,0 +1,18 @@
// shared
import { ref } from "vue";
export const isAlive = ref(false);
export const loading = ref(true);
export const setConnectionStatus: IpcListenerCallback<boolean | null> = (payload) => {
if (payload) {
isAlive.value = payload;
} else {
loading.value = true;
}
};
export default {
isAlive
};