mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
closeModal
This commit is contained in:
parent
26cd66814a
commit
e80d5570c5
@ -4,7 +4,7 @@
|
|||||||
<router-view />
|
<router-view />
|
||||||
</frappe-desk>
|
</frappe-desk>
|
||||||
<router-view v-else name="setup" />
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<component :is="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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-backdrop show" v-show="show"></div>
|
<div class="modal-backdrop show" v-show="show" @click="closeModal"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -50,7 +50,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeModal() {
|
closeModal() {
|
||||||
this.$emit('closeModal');
|
this.$emit('close-modal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user