mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-28 15:06:02 -05:00
[web] Avoid the loading progress bar being shown when navigating on the same page
This commit is contained in:
parent
7f38c4fa87
commit
a3942aad81
@ -96,7 +96,7 @@ export default {
|
|||||||
|
|
||||||
// Hook the progress bar to start before we move router-view
|
// Hook the progress bar to start before we move router-view
|
||||||
this.$router.beforeEach((to, from, next) => {
|
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) {
|
if (to.meta.progress !== undefined) {
|
||||||
const meta = to.meta.progress
|
const meta = to.meta.progress
|
||||||
this.$Progress.parseMeta(meta)
|
this.$Progress.parseMeta(meta)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user