removed id from favorites refresh toast

This commit is contained in:
Roberto Tonino 2020-06-18 18:33:00 +02:00
parent 7484bf75cf
commit e429b9e978
2 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -61,13 +61,15 @@ const FavoritesTab = new Vue({
this.artists = artists this.artists = artists
this.playlists = playlists this.playlists = playlists
console.log('update ok')
// Removing animation class only when the animation has completed an iteration // Removing animation class only when the animation has completed an iteration
// Prevents animation ugly stutter // Prevents animation ugly stutter
this.$refs.reloadButton.addEventListener( this.$refs.reloadButton.addEventListener(
'animationiteration', 'animationiteration',
() => { () => {
this.$refs.reloadButton.classList.remove('spin') this.$refs.reloadButton.classList.remove('spin')
toast('Refresh completed!', 'done', true, 'favorites-refresh-toast') toast('Refresh completed!', 'done', true)
}, },
{ once: true } { once: true }
) )