-
Notifications
You must be signed in to change notification settings - Fork 19
/
ProjectFolderError.vue
56 lines (53 loc) · 1.17 KB
/
ProjectFolderError.vue
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
49
50
51
52
53
54
55
56
<template>
<div class="project-folder-error">
<div class="project-folder-error-alert">
<AlertCircleOutline fill-color="#FF0000" :size="26" />
<b class="project-folder-error-alert-message">{{ projectFolderSetUpError }}</b>
</div>
<p v-html="sanitizedHintText" /> <!-- eslint-disable-line vue/no-v-html -->
</div>
</template>
<script>
import AlertCircleOutline from 'vue-material-design-icons/AlertCircleOutline.vue'
import dompurify from 'dompurify'
export default {
name: 'ProjectFolderError',
components: {
AlertCircleOutline,
},
props: {
projectFolderSetUpError: {
type: String,
required: true,
},
projectFolderSetUpErrorMessageDescription: {
type: String,
required: true,
},
},
computed: {
sanitizedHintText() {
return dompurify.sanitize(this.projectFolderSetUpErrorMessageDescription, { ADD_ATTR: ['target'] })
},
},
}
</script>
<style lang="scss" scoped>
.project-folder-error {
&-alert {
display: flex;
justify-content: start;
align-items: center;
padding-top: 15px;
&-message {
padding-left: 4px;
}
}
color: var(--color-error);
}
</style>
<style>
.project-folder-error .link {
color: #1a67a3 !important;
}
</style>