[web] Remove useless test in beforeRouteUpdate method

This commit is contained in:
Alain Nussbaumer 2024-02-29 10:52:36 +01:00
parent 1d90938598
commit e07a02b027
9 changed files with 1 additions and 37 deletions

View File

@ -99,10 +99,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
if (!this.albums_list.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)

View File

@ -99,10 +99,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
if (!this.artists_list.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)

View File

@ -54,10 +54,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
if (!this.albums.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)

View File

@ -70,10 +70,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
if (!this.albums.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)
@ -83,8 +79,8 @@ export default {
data() {
return {
artist: {},
albums: new GroupedList(),
artist: {},
show_details_modal: false
}
},

View File

@ -54,10 +54,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
if (!this.artists_list.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)

View File

@ -49,10 +49,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
if (!this.composers.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)

View File

@ -82,10 +82,6 @@ export default {
})
},
beforeRouteUpdate(to, from, next) {
if (!this.albums.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)

View File

@ -94,10 +94,6 @@ export default {
})
},
beforeRouteUpdate(to, from, next) {
if (!this.tracks_list.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)

View File

@ -52,10 +52,6 @@ export default {
},
beforeRouteUpdate(to, from, next) {
if (!this.recently_added.isEmpty()) {
next()
return
}
const vm = this
dataObject.load(to).then((response) => {
dataObject.set(vm, response)