fix: show current host if configured api url is /api/v1 instead of "" (#994)

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/994
Reviewed-by: dpschen <dpschen@noreply.kolaente.de>
Co-authored-by: konrad <k@knt.li>
Co-committed-by: konrad <k@knt.li>
This commit is contained in:
konrad 2021-11-14 16:16:05 +00:00
parent e63fd587c8
commit 31f344503c

View file

@ -67,7 +67,7 @@ export default {
},
computed: {
apiDomain() {
return parseURL(this.apiUrl).host
return parseURL(this.apiUrl).host || parseURL(window.location.href).host
},
},
props: {