diff --git a/src/components/CollectionsListElement.vue b/src/components/CollectionsListElement.vue
index b442592..447566f 100644
--- a/src/components/CollectionsListElement.vue
+++ b/src/components/CollectionsListElement.vue
@@ -1,9 +1,15 @@
-
+
+
+
+ {{ title }}
+
+
Open
- Tracks: {{ count }}
+
Items: {{ count }}
+
Type: {{ type | capitalize }}
@@ -14,12 +20,36 @@ export default {
name: "CollectionsListElement",
props: {
title: String,
- count: Number
+ count: Number,
+ type: String
},
methods: {
performClick() {
this.$emit('click');
}
+ },
+ computed: {
+ typeIcon() {
+ switch (this.type) {
+ case "work":
+ return "pencil-fill";
+ case "artist":
+ return "person-fill";
+ case "recording":
+ return "music-note";
+ case "release":
+ return "folder2";
+ default:
+ return "play-fill";
+ }
+ }
+ },
+ filters: {
+ capitalize(value) {
+ if (!value) return ''
+ value = value.toString()
+ return value.charAt(0).toUpperCase() + value.slice(1)
+ }
}
}
diff --git a/src/views/Collection.vue b/src/views/Collection.vue
index 4393c5b..f8ad6f8 100644
--- a/src/views/Collection.vue
+++ b/src/views/Collection.vue
@@ -20,7 +20,7 @@
- Play
+ Play
diff --git a/src/views/Collections.vue b/src/views/Collections.vue
index 8ebec6c..95ef794 100644
--- a/src/views/Collections.vue
+++ b/src/views/Collections.vue
@@ -7,7 +7,8 @@
-
+
@@ -41,6 +42,7 @@ export default {
}).catch(({text}) => {
this.$showToast(text);
});
+
}
}
diff --git a/src/views/Item.vue b/src/views/Item.vue
index 189ea6d..fb6fb74 100644
--- a/src/views/Item.vue
+++ b/src/views/Item.vue
@@ -23,7 +23,7 @@
Open on Spotify!
- Play!
+ Play!