2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

closeModal

This commit is contained in:
Faris Ansari 2018-06-15 21:16:45 +05:30
parent 26cd66814a
commit e80d5570c5
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<router-view />
</frappe-desk>
<router-view v-else name="setup" />
<frappe-modal ref="modal" :show="showModal" v-bind="modalOptions" />
<frappe-modal ref="modal" :show="showModal" v-bind="modalOptions" @close-modal="showModal = false"/>
</div>
</template>

View File

@ -16,12 +16,12 @@
</div>
<div class="modal-footer">
<component :is="footer" />
<button type="button" class="btn btn-secondary" @click="closeModal">Close</button>
<f-button secondary @click="closeModal">Close</f-button>
</div>
</div>
</div>
</div>
<div class="modal-backdrop show" v-show="show"></div>
<div class="modal-backdrop show" v-show="show" @click="closeModal"></div>
</div>
</template>
<script>
@ -50,7 +50,7 @@ export default {
},
methods: {
closeModal() {
this.$emit('closeModal');
this.$emit('close-modal');
}
}
}