Merge remote-tracking branch 'origin/dev' into dev
pulling connection status commits
This commit is contained in:
commit
dd91a9ae9e
6 changed files with 77 additions and 21 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue