vue-loading-overlay
vue-loading-overlay copied to clipboard
Some kind of showDelay option would be nice
I have something like this in my code:
watch: {
loading: function (loading) {
if (loading) {
this.loader = this.$loading.show();
} else {
this.loader.hide();
this.loader = null;
}
}
},
and then on an ajax call i do something like this:
methods: {
async loadProjekte() {
this.loading = true;
this.projekte = await Projekt.get(); // call to server by ajax
this.loading = false;
},
},
This works very well, but on short ajax calls, the overlay pops up and hides only microseconds later. It would be very nice to have an option to show() or a global option, that delays the display for some time for me:
this.$loading.show({showDelay: 500});
Is this still a consideration? I'd be happy to see this implemented.