From 03208725069f6e7d8377820b619b8a4113e39e15 Mon Sep 17 00:00:00 2001
From: Bat <baptiste@gelez.xyz>
Date: Wed, 18 Apr 2018 18:54:19 +0100
Subject: [PATCH] Fix non-existant $t in data

---
 front/src/components/requests/RequestsList.vue | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/front/src/components/requests/RequestsList.vue b/front/src/components/requests/RequestsList.vue
index ffb7bdb9eb..4464031c5e 100644
--- a/front/src/components/requests/RequestsList.vue
+++ b/front/src/components/requests/RequestsList.vue
@@ -96,12 +96,7 @@ export default {
       query: this.defaultQuery,
       paginateBy: parseInt(this.defaultPaginateBy || 12),
       orderingDirection: defaultOrdering.direction,
-      ordering: defaultOrdering.field,
-      orderingOptions: [
-        ['creation_date', this.$t('Creation date')],
-        ['artist_name', this.$t('Artist name')],
-        ['user__username', this.$t('User')]
-      ]
+      ordering: defaultOrdering.field
     }
   },
   created () {
@@ -141,6 +136,15 @@ export default {
       this.page = page
     }
   },
+  computed: {
+    orderingOptions: function () {
+      return [
+        ['creation_date', this.$t('Creation date')],
+        ['artist_name', this.$t('Artist name')],
+        ['user__username', this.$t('User')]
+      ]
+    }
+  },
   watch: {
     page () {
       this.updateQueryString()
-- 
GitLab