Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Georg Abenthung
funkwhale
Commits
73637273
Verified
Commit
73637273
authored
Aug 21, 2018
by
Eliot Berriot
Browse files
Fixed broken frontend
parent
e1474400
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/changelog.d/instance-url.bugfix
0 → 100644
View file @
73637273
Fixed front-end not contacting the proper path on the API
front/src/App.vue
View file @
73637273
...
...
@@ -127,6 +127,9 @@ export default {
if
(
!
this
.
$store
.
state
.
instance
.
instanceUrl
)
{
let
defaultInstanceUrl
=
process
.
env
.
VUE_APP_INSTANCE_URL
||
this
.
$store
.
getters
[
'
instance/defaultUrl
'
]()
this
.
$store
.
commit
(
'
instance/instanceUrl
'
,
defaultInstanceUrl
)
}
else
{
// needed to trigger initialization of axios
this
.
$store
.
commit
(
'
instance/instanceUrl
'
,
this
.
$store
.
state
.
instance
.
instanceUrl
)
}
this
.
$store
.
dispatch
(
'
auth/check
'
)
this
.
$store
.
dispatch
(
'
instance/fetchSettings
'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment