feat(#5): use auth

This commit is contained in:
Sirttas
2026-06-28 14:18:09 +02:00
parent e7249df23f
commit 61fbc8e16b
11 changed files with 1263 additions and 26 deletions
+3 -4
View File
@@ -1,14 +1,13 @@
<script setup lang="ts">
import {mammonAddCharacterUrl} from "@/mammon";
import {CharacterLabel, useCharactersStore} from "@/characters";
import {useAuthStore} from "@/auth";
import {ArrowPathIcon} from '@heroicons/vue/24/outline';
const charactersStore = useCharactersStore()
const authStore = useAuthStore()
const addCharacter = () => {
window.location.replace(mammonAddCharacterUrl);
}
const addCharacter = () => authStore.addCharacter();
</script>
<template>