From 8f25f5d353064f383e97bbc524ce6e00ba559d0f Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 29 Sep 2022 10:47:45 +0000 Subject: [PATCH] feat: improve api-config (#2444) remove obsolet `success` (not used) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2444 Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/components/misc/api-config.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/misc/api-config.vue b/src/components/misc/api-config.vue index 964a497c..cf3ad938 100644 --- a/src/components/misc/api-config.vue +++ b/src/components/misc/api-config.vue @@ -30,10 +30,7 @@ {{ $t('apiConfig.change') }} - - {{ successMsg }} - - + {{ errorMsg }} @@ -74,7 +71,6 @@ watch(() => props.configureOpen, (value) => { const {t} = useI18n({useScope: 'global'}) const errorMsg = ref('') -const successMsg = ref('') async function setApiUrl() { if (apiUrl.value === '') { @@ -99,7 +95,6 @@ async function setApiUrl() { emit('foundApi', apiUrl.value) } catch (e) { // Still not found, url is still invalid - successMsg.value = '' errorMsg.value = t('apiConfig.error', {domain: apiDomain.value}) } }