[web] Avoid the loading progress bar being shown when navigating on the same page

This commit is contained in:
Alain Nussbaumer 2023-07-26 06:45:46 +02:00
parent 7f38c4fa87
commit a3942aad81

View File

@ -96,7 +96,7 @@ export default {
// Hook the progress bar to start before we move router-view
this.$router.beforeEach((to, from, next) => {
if (to.meta.show_progress) {
if (to.meta.show_progress && !(to.path === from.path && to.hash)) {
if (to.meta.progress !== undefined) {
const meta = to.meta.progress
this.$Progress.parseMeta(meta)