mirror of
https://github.com/jcreek/bank-statement-analyser.git
synced 2026-07-13 02:43:47 +00:00
Added a reusable Modal component for the apply tag functionality
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<button
|
||||
type="button"
|
||||
class="btn"
|
||||
@click="showModal"
|
||||
>
|
||||
Open Modal!
|
||||
</button>
|
||||
|
||||
<modal
|
||||
v-show="isModalVisible"
|
||||
@close="closeModal"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Modal from '../components/Modal.vue';
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
components: {
|
||||
Modal,
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
isModalVisible: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
showModal() {
|
||||
this.isModalVisible = true;
|
||||
},
|
||||
closeModal() {
|
||||
this.isModalVisible = false;
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user