feat: add popop with awfuls colors and backend api call

This commit is contained in:
Pierre Tellier
2025-02-08 12:11:20 +01:00
parent dfaa97346f
commit b228b78e17
7 changed files with 34 additions and 26 deletions

View File

@ -1,11 +1,22 @@
<script setup lang="ts">
import {errorList} from "@/services/popupDisplayer.ts";
import ErrorModal from "@/components/errorModal.vue";
</script>
<template>
<div class="error-wrapper">
<error-modal v-for="elm in errorList" :data=elm></error-modal>
</div>
</template>
<style scoped>
.error-wrapper{
position: absolute;
left: 70%;
//background-color: blue;
height: 100%;
width: 30%;
}
</style>

View File

@ -1,9 +1,9 @@
<script setup lang="ts">
import {store} from "../main.ts";
import {callApi} from "@/services/api.ts";
import ErrorModal from "@/views/errorModal.vue";
import ErrorModal from "@/components/errorModal.vue";
import {errorList} from "@/services/popupDisplayer.ts";
import TempModal from "@/views/temp-modal.vue";
import TempModal from "@/components/temp-modal.vue";
import ErrorWrapper from "@/App.vue";
function addResToTable(id: any){
return (req: any) => {