save changed marks

This commit is contained in:
walamana committed 2023-09-18 11:51:41 +02:00
1 parent 00cca5ca9a
commit 24f14da9b2
16 files changed
+300 -119

No files matched your search

+4 -3
View File
@@ -2,7 +2,8 @@
<script setup lang="ts">
import Input from "@/components/Input.vue";
import {onMounted, ref} from "vue";
import {API} from "@/views/api";
import {API} from "@/services/api";
import {Auth} from "@/services/auth";
const props = defineProps<{
active: boolean
@@ -22,7 +23,7 @@ const username = ref("")
const password = ref("")
async function attemptLogin() {
let login = await API.login(username.value, password.value)
let login = await Auth.login(username.value, password.value)
if(login.success){
console.log("success", login)
emit("success", login)
@@ -36,7 +37,7 @@ async function attemptLogin() {
<span class="title">Anmelden</span>
<Input class="input" v-model:value="username" label="Nutzername"/>
<Input class="input" v-model:value="password" label="Passwort" type="password"/>
<button><i>login</i>Anmelden</button>
<button @click="attemptLogin"><i>login</i>Anmelden</button>
</div>
</template>