feat: show errors when figuring out the url failed
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
628d102907
commit
4ca53d77e2
|
@ -89,6 +89,7 @@ export default {
|
||||||
async setApiUrl() {
|
async setApiUrl() {
|
||||||
if (this.apiUrl === '') {
|
if (this.apiUrl === '') {
|
||||||
// Don't try to check and set an empty url
|
// Don't try to check and set an empty url
|
||||||
|
this.errorMsg = this.$t('apiConfig.urlRequired')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +98,7 @@ export default {
|
||||||
|
|
||||||
if (url === '') {
|
if (url === '') {
|
||||||
// If the config setter function could not figure out a url
|
// If the config setter function could not figure out a url
|
||||||
return
|
throw new Error('URL cannot be empty.')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set it + save it to local storage to save us the hoops
|
// Set it + save it to local storage to save us the hoops
|
||||||
|
|
|
@ -787,7 +787,8 @@
|
||||||
"change": "change",
|
"change": "change",
|
||||||
"signInOn": "Sign in to your Vikunja account on {0}",
|
"signInOn": "Sign in to your Vikunja account on {0}",
|
||||||
"error": "Could not find or use Vikunja installation at \"{domain}\". Please try a different url.",
|
"error": "Could not find or use Vikunja installation at \"{domain}\". Please try a different url.",
|
||||||
"success": "Using Vikunja installation at \"{domain}\"."
|
"success": "Using Vikunja installation at \"{domain}\".",
|
||||||
|
"urlRequired": "A url is required."
|
||||||
},
|
},
|
||||||
"loadingError": {
|
"loadingError": {
|
||||||
"failed": "Loading failed, please {0}. If the error persists, please {1}.",
|
"failed": "Loading failed, please {0}. If the error persists, please {1}.",
|
||||||
|
|
Reference in New Issue