-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from LCOGT/feature/error-reporting
Global Alerts, Handling of failed operations, Wizard Styling changes
- Loading branch information
Showing
8 changed files
with
135 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script setup> | ||
import { ref, watch } from 'vue' | ||
import { useAlertsStore } from '../../stores/alerts' | ||
const alertStore = useAlertsStore() | ||
const showAlert = ref(false) | ||
watch(() => alertStore.alertText, () => {showAlert.value = true}) | ||
</script> | ||
<template> | ||
<v-fade-transition> | ||
<v-alert | ||
v-model="showAlert" | ||
closable | ||
:type="alertStore.alertType" | ||
:text="alertStore.alertText" | ||
/> | ||
</v-fade-transition> | ||
</template> | ||
<style scoped> | ||
.v-alert { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
z-index: 1000; | ||
padding: 10px; | ||
margin: 2rem; | ||
} | ||
</style> |
Oops, something went wrong.