|
2 | 2 | <MkModal ref="modal" @click="done(true)" @closed="$emit('closed')">
|
3 | 3 | <div class="mk-dialog">
|
4 | 4 | <div class="icon" v-if="icon">
|
5 |
| - <Fa :icon="icon"/> |
| 5 | + <i :class="icon"></i> |
6 | 6 | </div>
|
7 | 7 | <div class="icon" v-else-if="!input && !select" :class="type">
|
8 |
| - <Fa :icon="faCheck" v-if="type === 'success'"/> |
9 |
| - <Fa :icon="faTimesCircle" v-if="type === 'error'"/> |
10 |
| - <Fa :icon="faExclamationTriangle" v-if="type === 'warning'"/> |
11 |
| - <Fa :icon="faInfoCircle" v-if="type === 'info'"/> |
12 |
| - <Fa :icon="faQuestionCircle" v-if="type === 'question'"/> |
13 |
| - <Fa :icon="faSpinner" pulse v-if="type === 'waiting'"/> |
| 8 | + <i v-if="type === 'success'" class="fas fa-check"></i> |
| 9 | + <i v-else-if="type === 'error'" class="fas fa-times-circle"></i> |
| 10 | + <i v-else-if="type === 'warning'" class="fas fa-exclamation-triangle"></i> |
| 11 | + <i v-else-if="type === 'info'" class="fas fa-information-circle"></i> |
| 12 | + <i v-else-if="type === 'question'" class="fas fa-question-circle"></i> |
| 13 | + <i v-else-if="type === 'waiting'" class="fas fa-spinner fa-pulse"></i> |
14 | 14 | </div>
|
15 | 15 | <header v-if="title"><Mfm :text="title"/></header>
|
16 | 16 | <div class="body" v-if="text"><Mfm :text="text"/></div>
|
|
38 | 38 |
|
39 | 39 | <script lang="ts">
|
40 | 40 | import { defineComponent } from 'vue';
|
41 |
| -import { faSpinner, faInfoCircle, faExclamationTriangle, faCheck } from '@fortawesome/free-solid-svg-icons'; |
42 |
| -import { faTimesCircle, faQuestionCircle } from '@fortawesome/free-regular-svg-icons'; |
43 | 41 | import MkModal from '@client/components/ui/modal.vue';
|
44 | 42 | import MkButton from '@client/components/ui/button.vue';
|
45 | 43 | import MkInput from '@client/components/ui/input.vue';
|
@@ -99,7 +97,6 @@ export default defineComponent({
|
99 | 97 | return {
|
100 | 98 | inputValue: this.input && this.input.default ? this.input.default : null,
|
101 | 99 | selectedValue: this.select ? this.select.default ? this.select.default : this.select.items ? this.select.items[0].value : this.select.groupedItems[0].items[0].value : null,
|
102 |
| - faTimesCircle, faQuestionCircle, faSpinner, faInfoCircle, faExclamationTriangle, faCheck |
103 | 100 | };
|
104 | 101 | },
|
105 | 102 |
|
|
0 commit comments