-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathFinishStep.vue
More file actions
48 lines (46 loc) · 1.27 KB
/
FinishStep.vue
File metadata and controls
48 lines (46 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
<ShowInfo :title="finalMessage">
<template #content>
<div class="test-content pa-6 rounded-xl text-center">
<v-icon
size="96"
color="success"
>
mdi-check-circle-outline
</v-icon>
<h3 class="text-h5 font-weight-bold mt-4 text-secondary">
{{ finalMessage }}!
</h3>
<div class="text-body-1 mt-2 text-grey-darken-1" v-html="sanitizedCongratulations"></div>
<p class="text-body-1 mt-6 text-grey-darken-1">
{{ submitMessage }}
</p>
<v-btn
color="primary"
variant="flat"
size="large"
class="mt-4"
@click="$emit('submit')"
>
<v-icon start>
mdi-send
</v-icon>
{{ submitBtn }}
</v-btn>
</div>
</template>
</ShowInfo>
</template>
<script setup>
import DOMPurify from 'dompurify'
import { computed } from 'vue'
import ShowInfo from '@/shared/components/ShowInfo.vue';
const props = defineProps({
finalMessage: String,
congratulations: String,
submitMessage: String,
submitBtn: String
});
const emit = defineEmits(['submit']);
const sanitizedCongratulations = computed(() => DOMPurify.sanitize(props.congratulations || ''));
</script>