From f3b6bc102916b2248d76ff597431fc4e7fed5d39 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Fri, 27 Jul 2018 19:49:41 +0200 Subject: [PATCH 1/2] Fixed weird bugs with translations not updating --- front/src/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/src/main.js b/front/src/main.js index fde332acc..eca2e6205 100644 --- a/front/src/main.js +++ b/front/src/main.js @@ -43,6 +43,10 @@ if (availableLanguages[store.state.ui.currentLanguage]) { Vue.use(GetTextPlugin, { availableLanguages: availableLanguages, defaultLanguage: defaultLanguage, + // cf https://github.com/Polyconseil/vue-gettext#configuration + // not recommended but this is fixing weird bugs with translation nodes + // not being updated when in v-if/v-else clauses + autoAddKeyAttributes: true, languageVmMixin: { computed: { currentKebabCase: function () { From ec52aa040d70e76ca537d091d712b4c2e4b0c534 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Fri, 27 Jul 2018 19:49:53 +0200 Subject: [PATCH 2/2] Fixed redirection --- front/src/components/audio/PlayButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/components/audio/PlayButton.vue b/front/src/components/audio/PlayButton.vue index ad85e72ce..b1421225b 100644 --- a/front/src/components/audio/PlayButton.vue +++ b/front/src/components/audio/PlayButton.vue @@ -110,7 +110,7 @@ export default { resolve(self.tracks) } else if (self.playlist) { let url = 'playlists/' + self.playlist.id + '/' - axios.get(url + 'tracks').then((response) => { + axios.get(url + 'tracks/').then((response) => { resolve(response.data.results.map(plt => { return plt.track }))