diff --git a/assets/pages/index.vue b/assets/pages/index.vue index e5588d42..1d98b387 100644 --- a/assets/pages/index.vue +++ b/assets/pages/index.vue @@ -2,8 +2,11 @@
-
- {{ config.user?.email }} +
+ +
+
+ {{ config.user.name ?? config.user.email }}
@@ -73,6 +76,14 @@ watchEffect(() => { setTitle(t("title.dashboard", { count: runningContainers.length })); } }); + +async function logout() { + await fetch(withBase("/api/token"), { + method: "DELETE", + }); + + location.reload(); +}