initial working version

This commit is contained in:
riqo 2021-06-16 08:42:47 -05:00
commit d963f7d8a8
23 changed files with 89 additions and 100 deletions

View file

@ -28,9 +28,7 @@
<script lang="ts">
import { defineComponent, ref } from "vue";
import { useIpc } from "@/modules/ipc";
import { logoutRequest } from '@/modules/message';
import { useProfile } from "@/modules/auth"
import { useProfile } from "@/render/composables/useProfile"
import { invokeLogout } from "@/render/ipc";
export default defineComponent({
@ -39,8 +37,6 @@
setup() {
const toggleSettings = ref(false);
const { post, invoke } = useIpc();
const { clearProfile } = useProfile();
// Listen for escape key to close settings.
@ -63,8 +59,8 @@
console.log("Submitting logout request.");
try {
clearProfile();
await invokeLogout();
clearProfile();
} catch(e) {
console.log('error')
}