Skip to content
Snippets Groups Projects
Commit bc5b9408 authored by Julian's avatar Julian
Browse files

Display loading animation on every request in the iframe

parent 29f74768
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
Pipeline #106694 failed
......@@ -56,6 +56,11 @@ export default {
this.$router.push(path);
}
// Show loader if iframe starts to change it's content, even if the $route stays the same
this.$refs.contentIFrame.contentWindow.onbeforeunload = (e) => {
this.loading = true;
e.resume();
}
const title = this.$refs.contentIFrame.contentWindow.document.title;
document.title = title;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment