loading function ejected from vue instance
This commit is contained in:
parent
71f05121ab
commit
5be8257149
5
resources/assets/js/mixins/global.js
vendored
5
resources/assets/js/mixins/global.js
vendored
@ -87,7 +87,6 @@ export default {
|
|||||||
"thousands_separator":",",
|
"thousands_separator":",",
|
||||||
},
|
},
|
||||||
all_currencies: [],
|
all_currencies: [],
|
||||||
content_loading: true,
|
|
||||||
connect: {
|
connect: {
|
||||||
show: false,
|
show: false,
|
||||||
currency: {},
|
currency: {},
|
||||||
@ -111,10 +110,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
setTimeout(() => {
|
|
||||||
this.content_loading = false;
|
|
||||||
}, 1500);
|
|
||||||
|
|
||||||
this.checkNotify();
|
this.checkNotify();
|
||||||
|
|
||||||
GLightbox({
|
GLightbox({
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div data-absolute-loading-content v-if="content_loading" class="absolute w-full lg:flex items-start justify-center bg-body top-0 bottom-0 left-0 right-0 z-50">
|
<div data-absolute-loading-content class="absolute w-full lg:flex items-start justify-center bg-body top-0 bottom-0 left-0 right-0 z-50">
|
||||||
<img src="{{ asset('public/img/akaunting-loading.gif') }}" class="w-28 h-28" alt="Akaunting" />
|
<img src="{{ asset('public/img/akaunting-loading.gif') }}" class="w-28 h-28" alt="Akaunting" />
|
||||||
</div>
|
</div>
|
||||||
<!--data attr added because for none vue.js pages-->
|
<!--data attr added because for none vue.js pages-->
|
@ -1,4 +1,4 @@
|
|||||||
<div data-loading-content v-if="content_loading" class="fixed w-full lg:w-4/5 h-screen flex items-center justify-center bg-body top-0 bottom-0 ltr:right-0 rtl:left-0 -mx-1 z-50">
|
<div data-loading-content class="fixed w-full lg:w-4/5 h-screen flex items-center justify-center bg-body top-0 bottom-0 ltr:right-0 rtl:left-0 -mx-1 z-50">
|
||||||
<img src="{{ asset('public/img/akaunting-loading.gif') }}" class="w-28 h-28 lg:-mt-16" alt="Akaunting" />
|
<img src="{{ asset('public/img/akaunting-loading.gif') }}" class="w-28 h-28 lg:-mt-16" alt="Akaunting" />
|
||||||
</div>
|
</div>
|
||||||
<!--data attr added because for none vue.js pages-->
|
<!--data attr added because for none vue.js pages-->
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loading_menu_html[0].remove();
|
loading_menu_html[0].remove();
|
||||||
menu_html.classList.remove('hidden');
|
menu_html.classList.remove('hidden');
|
||||||
}, 800);
|
}, timer);
|
||||||
|
|
||||||
if (loading_html.length) {
|
if (loading_html.length) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user