Merge branch '327-versatile-front' into 'develop'

Resolve "Make it possible to point the front-end to custom API urls"

Closes #327

See merge request funkwhale/funkwhale!269
This commit is contained in:
Eliot Berriot 2018-06-23 16:29:15 +00:00
commit 7d60155b0f
25 changed files with 251 additions and 101 deletions

View file

@ -43,8 +43,6 @@
<script>
import axios from 'axios'
import backend from '@/audio/backend'
export default {
data () {
return {
@ -72,7 +70,7 @@ export default {
})
},
getUrl (code) {
return backend.absoluteUrl(this.$router.resolve({name: 'signup', query: {invitation: code.toUpperCase()}}).href)
return this.$store.getters['instance/absoluteUrl'](this.$router.resolve({name: 'signup', query: {invitation: code.toUpperCase()}}).href)
}
}
}