-
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.
- Loading branch information
1 parent
d76462c
commit 234b75e
Showing
2 changed files
with
176 additions
and
2 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,51 @@ | ||
<template> | ||
<v-card> | ||
<!-- Loading --> | ||
<v-card-title v-if="!success && !error"> | ||
Authorising... | ||
<v-spacer/> | ||
<v-progress-circular | ||
indeterminate | ||
color="primary" | ||
/> | ||
</v-card-title> | ||
<!-- Link created --> | ||
<v-card-title v-if="success"> | ||
Student Authorised! | ||
<v-spacer/> | ||
<v-btn icon color="primary" @click="$emit('close')"> | ||
<v-icon>mdi-close</v-icon> | ||
</v-btn> | ||
</v-card-title> | ||
<!-- Error occurred --> | ||
<v-card-title v-if="!success && error.length"> | ||
Oops, an error occurred! | ||
<v-spacer/> | ||
<v-btn icon color="primary" @click="$emit('close')"> | ||
<v-icon>mdi-close</v-icon> | ||
</v-btn> | ||
</v-card-title> | ||
<v-card-text v-if="!success && error.length"> | ||
<v-row style="font-size: 1.25em"> | ||
<v-col align="center" class="error--text"> | ||
{{ error }} | ||
</v-col> | ||
</v-row> | ||
</v-card-text> | ||
</v-card> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from "vue"; | ||
import QrcodeVue from "qrcode.vue"; | ||
export default Vue.extend({ | ||
props: { | ||
success: Boolean, | ||
error: String, | ||
}, | ||
components: { | ||
QrcodeVue | ||
} | ||
}); | ||
</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