Merge remote-tracking branch 'origin/dev' into dev

pulling connection status commits
This commit is contained in:
Andrew Gundersen 2021-06-28 11:36:25 -05:00
commit dd91a9ae9e
6 changed files with 77 additions and 21 deletions

View file

@ -1,18 +1,12 @@
// 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 const status = ref("");
export const setConnectionStatus: IpcListenerCallback<string> = (payload) => {
status.value = payload;
};
export default {
isAlive
status
};