File tree 2 files changed +30
-2
lines changed
2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" overlay app-modal" @click.self =" $emit('close')" >
3
+ <div class =" modal" role =" dialog" aria-modal =" true" >
4
+ <header v-if =" title" class =" modal-header" >
5
+ <h3 >{{ title }}</h3 >
6
+ <button aria-label =" Close" class =" close-button" @click =" $emit('close')" >
7
+ × ;
8
+ </button >
9
+ </header >
10
+
11
+ <slot ></slot >
12
+ </div >
13
+ </div >
14
+ </template >
15
+
16
+ <script >
17
+ export default {
18
+ name: ' AppModal' ,
19
+ props: {
20
+ title: {
21
+ type: String ,
22
+ default: ' ' ,
23
+ },
24
+ },
25
+ };
26
+ </script >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <app-modal
2
+ <AppModal
3
3
v-if =" activeModal !== null"
4
4
:title =" $t(`help.${modals[activeModal]}.heading`)"
5
5
@close =" closeModal"
119
119
v-html =" $t(`help.${modals[activeModal]}.footer`)"
120
120
/>
121
121
</section >
122
- </app-modal >
122
+ </AppModal >
123
123
</template >
124
124
125
125
<script >
126
126
import LicenseIcons from ' ./LicenseIcons' ;
127
+ import AppModal from ' ./AppModal.vue' ;
127
128
128
129
export default {
129
130
name: ' ChooserModal' ,
130
131
components: {
132
+ AppModal,
131
133
LicenseIcons,
132
134
},
133
135
props: {
You can’t perform that action at this time.
0 commit comments