File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 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 11<template >
2- <app-modal
2+ <AppModal
33 v-if =" activeModal !== null"
44 :title =" $t(`help.${modals[activeModal]}.heading`)"
55 @close =" closeModal"
119119 v-html =" $t(`help.${modals[activeModal]}.footer`)"
120120 />
121121 </section >
122- </app-modal >
122+ </AppModal >
123123</template >
124124
125125<script >
126126import LicenseIcons from ' ./LicenseIcons' ;
127+ import AppModal from ' ./AppModal.vue' ;
127128
128129export default {
129130 name: ' ChooserModal' ,
130131 components: {
132+ AppModal,
131133 LicenseIcons,
132134 },
133135 props: {
You can’t perform that action at this time.
0 commit comments