-
@@ -28,7 +28,8 @@ export default {
props: {
action: {type: Function, required: false},
disabled: {type: Boolean, default: false},
- color: {type: String, default: 'red'}
+ color: {type: String, default: 'red'},
+ confirmColor: {type: String, default: null, required: false}
},
components: {
Modal
@@ -38,6 +39,14 @@ export default {
showModal: false
}
},
+ computed: {
+ confirmButtonColor () {
+ if (this.confirmColor) {
+ return this.confirmColor
+ }
+ return this.color
+ }
+ },
methods: {
confirm () {
this.showModal = false
diff --git a/front/src/components/favorites/List.vue b/front/src/components/favorites/List.vue
index d189f2b85..65d97cef9 100644
--- a/front/src/components/favorites/List.vue
+++ b/front/src/components/favorites/List.vue
@@ -26,7 +26,7 @@
@@ -74,7 +74,7 @@ export default {
Pagination
},
data () {
- let defaultOrdering = this.getOrderingFromString(this.defaultOrdering || 'artist__name')
+ let defaultOrdering = this.getOrderingFromString(this.defaultOrdering || '-creation_date')
return {
results: null,
isLoading: false,
@@ -82,9 +82,10 @@ export default {
previousLink: null,
page: parseInt(this.defaultPage),
paginateBy: parseInt(this.defaultPaginateBy || 25),
- orderingDirection: defaultOrdering.direction,
+ orderingDirection: defaultOrdering.direction || '+',
ordering: defaultOrdering.field,
orderingOptions: [
+ ['creation_date', 'Creation date'],
['title', 'Track name'],
['album__title', 'Album name'],
['artist__name', 'Artist name']
@@ -135,19 +136,15 @@ export default {
watch: {
page: function () {
this.updateQueryString()
- this.fetchFavorites(FAVORITES_URL)
},
paginateBy: function () {
this.updateQueryString()
- this.fetchFavorites(FAVORITES_URL)
},
orderingDirection: function () {
this.updateQueryString()
- this.fetchFavorites(FAVORITES_URL)
},
ordering: function () {
this.updateQueryString()
- this.fetchFavorites(FAVORITES_URL)
}
}
}
diff --git a/front/src/components/federation/LibraryTrackTable.vue b/front/src/components/federation/LibraryTrackTable.vue
index d8ee48bf2..43b52c835 100644
--- a/front/src/components/federation/LibraryTrackTable.vue
+++ b/front/src/components/federation/LibraryTrackTable.vue
@@ -10,95 +10,77 @@
-
{{ artist.name }}
-
@@ -18,7 +18,7 @@
-
+
@@ -30,10 +30,13 @@
-