mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[web] Remove useless test in beforeRouteUpdate method
This commit is contained in:
parent
1d90938598
commit
e07a02b027
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
},
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user