-
Notifications
You must be signed in to change notification settings - Fork 1
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 #54 from simonsobs/dev
Show error on dialog when adding or removing on queue fails
- Loading branch information
Showing
4 changed files
with
75 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<v-dialog v-model="show" max-width="800"> | ||
<v-card class="pa-2"> | ||
<v-card-title class="text-error"> An error occurred</v-card-title> | ||
<v-card-text class="text-error"> <pre>{{ error }}</pre> </v-card-text> | ||
<v-card-actions class="mt-5"> | ||
<v-spacer></v-spacer> | ||
<v-btn variant="text" color="primary" @click="onOk"> OK </v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { CombinedError } from '@urql/vue'; | ||
const show = defineModel<boolean>(); | ||
interface Props { | ||
error?: CombinedError; | ||
} | ||
type Emits = { | ||
ok: []; | ||
}; | ||
defineProps<Props>(); | ||
const emit = defineEmits<Emits>(); | ||
function onOk() { | ||
emit("ok"); | ||
show.value = false; | ||
} | ||
</script> |
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