Skip to content

Commit

Permalink
fix: app would show nothing if a playlist had no cover at all
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthemaster committed Sep 29, 2022
1 parent 089e78f commit 3e4258c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "daunroda-app",
"version": "0.0.1-alpha.3",
"version": "0.0.1-alpha.4",
"private": true,
"description": "The official Daunroda app to easily download Spotify playlists.",
"author": "Alex Kovacs <[email protected]>",
Expand Down
Binary file added src/assets/no_playlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions src/components/Download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<p class="title has-text-white">Hello, {{ store.config.username }}!</p>
<br />
<p class="subtitle has-text-white">
Select the playlists you want to download. (Don't see a playlist here? Make
sure that it's public!)
Select the playlists you want to download.
<br />
(Don't see a playlist here? Make sure that it's public!)
</p>

<div v-for="playlist in playlists" :key="playlist.name" class="playlist">
Expand All @@ -14,7 +15,10 @@
v-model="download"
style="margin-right: 20px"
/>
<img :src="playlist.images[0].url" style="max-height: 50px" />
<img
:src="playlist.images[0]?.url || '/src/assets/no_playlist.png'"
style="max-height: 50px"
/>
{{ playlist.name }}
</label>
</div>
Expand Down Expand Up @@ -72,7 +76,6 @@ import { ipcRenderer } from "electron";
import { inspect } from "util";
import type { StoreConfig } from "../store.js";
import { loadConfig, store } from "../store.js";
export default defineComponent({
name: "DownloadPage",
data(): {
Expand Down

0 comments on commit 3e4258c

Please sign in to comment.