@@ -1,5 +1,5 @@
<template lang="pug">
- modal(name="pos-loader" transition="nice-modal-fade")
+ modal(name="pos-loader" transition="nice-modal-fade" @before-close="beforeClose")
h2 Cargando
</template>
@@ -19,6 +19,13 @@
}
},
+ methods: {
+ beforeClose(e) {
+ if (!this.isLoaded) {
+ e.stop()
+ }
+ },
mounted() {
this.$modal.show("pos-loader")