fix missing error messages

This commit is contained in:
Thomas Amland 2021-04-25 18:19:45 +02:00
parent 28dfdb82c1
commit a98e5ab486
4 changed files with 7 additions and 13 deletions

View File

@ -69,7 +69,7 @@
album: null as null | Album,
}
},
async mounted() {
async created() {
this.album = await this.$api.getAlbumDetails(this.id)
},
methods: {

View File

@ -17,10 +17,8 @@
items: null as null | Artist[]
}
},
created() {
this.$api.getArtists().then(items => {
this.items = items
})
async created() {
this.items = await this.$api.getArtists()
}
})
</script>

View File

@ -20,10 +20,8 @@
items: [],
}
},
created() {
this.$api.getGenres().then((items) => {
this.items = items
})
async created() {
this.items = await this.$api.getGenres()
},
})
</script>

View File

@ -31,10 +31,8 @@
result: null as any,
}
},
created() {
this.$api.getStarred().then(result => {
this.result = result
})
async created() {
this.result = await this.$api.getStarred()
}
})
</script>