Jonathan Druart
08ce593bd9
Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
17 lines
No EOL
429 B
Vue
17 lines
No EOL
429 B
Vue
<template>
|
|
<div class="dialog message" v-if="message">{{ message }}</div>
|
|
<div class="dialog alert" v-if="error">{{ error }}</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { storeToRefs } from "pinia"
|
|
import { useMainStore } from "../../stores/main"
|
|
|
|
export default {
|
|
setup(){
|
|
const mainStore = useMainStore()
|
|
const { message, error } = storeToRefs(mainStore)
|
|
return { message, error }
|
|
},
|
|
};
|
|
</script> |