Skip to content

Commit

Permalink
[web] Replace hard-coded loading text in Spotify search page with loa…
Browse files Browse the repository at this point in the history
…ding icon
  • Loading branch information
hacketiwack committed Jan 28, 2024
1 parent 65e95d7 commit 4d47567
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
2 changes: 2 additions & 0 deletions web-src/src/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
mdiFolder,
mdiFolderOpen,
mdiHistory,
mdiLoading,
mdiMagnify,
mdiMenu,
mdiMicrophone,
Expand Down Expand Up @@ -90,6 +91,7 @@ export const icons = {
mdiFolder,
mdiFolderOpen,
mdiHistory,
mdiLoading,
mdiMagnify,
mdiMenu,
mdiMicrophone,
Expand Down
36 changes: 32 additions & 4 deletions web-src/src/pages/PageSearchSpotify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@
v-if="query.type === 'track'"
:load="search_tracks_next"
>
<template #no-more> . </template>
<template #loading>
<div class="columns is-centered">
<div class="column has-text-centered">
<mdicon class="icon mdi-spin" name="loading" />
</div>
</div>
</template>
<template #no-more>&nbsp;</template>
</VueEternalLoading>
<modal-dialog-track-spotify
:show="show_track_details_modal"
Expand Down Expand Up @@ -116,7 +123,14 @@
v-if="query.type === 'artist'"
:load="search_artists_next"
>
<template #no-more> . </template>
<template #loading>
<div class="columns is-centered">
<div class="column has-text-centered">
<mdicon class="icon mdi-spin" name="loading" />
</div>
</div>
</template>
<template #no-more>&nbsp;</template>
</VueEternalLoading>
<modal-dialog-artist-spotify
:show="show_artist_details_modal"
Expand Down Expand Up @@ -181,7 +195,14 @@
v-if="query.type === 'album'"
:load="search_albums_next"
>
<template #no-more> . </template>
<template #loading>
<div class="columns is-centered">
<div class="column has-text-centered">
<mdicon class="icon mdi-spin" name="loading" />
</div>
</div>
</template>
<template #no-more>&nbsp;</template>
</VueEternalLoading>
<modal-dialog-album-spotify
:show="show_album_details_modal"
Expand Down Expand Up @@ -235,7 +256,14 @@
v-if="query.type === 'playlist'"
:load="search_playlists_next"
>
<template #no-more> . </template>
<template #loading>
<div class="columns is-centered">
<div class="column has-text-centered">
<mdicon class="icon mdi-spin" name="loading" />
</div>
</div>
</template>
<template #no-more>&nbsp;</template>
</VueEternalLoading>
<modal-dialog-playlist-spotify
:show="show_playlist_details_modal"
Expand Down

0 comments on commit 4d47567

Please sign in to comment.