Skip to content

Commit

Permalink
Message to keep screen open during fetches on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmenon committed Jan 13, 2024
1 parent 34eba2f commit 480d775
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,18 @@ export class SpotifyAlbumSortComponent implements AfterViewInit {
}

async fetchLibrary() {
if (this.mobileView()) {
this.messageService.open("Fetching Spotify library. Keep this screen open during the entirely of the fetch!", "center", true)
}
this.fetchLoading = true
await this.spotifyService.getUserAlbums()
window.location.reload()
}

async fetchLastmData() {
if (this.mobileView()) {
this.messageService.open("Fetching Last.fm data. Keep this screen open during the entirely of the fetch!", "center", true)
}
this.lastfmFetchLoading = true
await this.lastfmService.fetchLastfmDataForSpotifyAlbums()
window.location.reload()
Expand Down

0 comments on commit 480d775

Please sign in to comment.