diff --git a/aleksis/core/assets/components/LegacyBaseTemplate.vue b/aleksis/core/assets/components/LegacyBaseTemplate.vue index ddd0f56e78c7b1a7fcdb1517f7d605615db098ff..e70c7bac65f17c6e38862e550a1978c5c07a6291 100644 --- a/aleksis/core/assets/components/LegacyBaseTemplate.vue +++ b/aleksis/core/assets/components/LegacyBaseTemplate.vue @@ -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; },