From 12544c52ca55e6ada6d0fc3b5c1fab4dfce1a9ef Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 22 Jun 2022 21:37:23 +0200 Subject: [PATCH] fix: add ButtonLink component Add ButtonLink component to fix occasions where the BaseButton needs to be styled in a link color. --- src/components/input/editor.vue | 4 +++- src/components/misc/ButtonLink.vue | 17 +++++++++++++++++ src/components/misc/api-config.vue | 4 ++-- src/components/misc/error.vue | 6 +++--- 4 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 src/components/misc/ButtonLink.vue diff --git a/src/components/input/editor.vue b/src/components/input/editor.vue index f523ba2e..ab4383fa 100644 --- a/src/components/input/editor.vue +++ b/src/components/input/editor.vue @@ -16,7 +16,7 @@

{{ emptyText }}

@@ -63,12 +63,14 @@ import {findCheckboxesInText} from '../../helpers/checklistFromText' import {createRandomID} from '@/helpers/randomId' import BaseButton from '@/components/base/BaseButton.vue' +import ButtonLink from '@/components/misc/ButtonLink.vue' export default defineComponent({ name: 'editor', components: { VueEasymde, BaseButton, + ButtonLink, }, props: { modelValue: { diff --git a/src/components/misc/ButtonLink.vue b/src/components/misc/ButtonLink.vue new file mode 100644 index 00000000..8b8620e4 --- /dev/null +++ b/src/components/misc/ButtonLink.vue @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/src/components/misc/api-config.vue b/src/components/misc/api-config.vue index 5aa8f509..3bd9719e 100644 --- a/src/components/misc/api-config.vue +++ b/src/components/misc/api-config.vue @@ -27,7 +27,7 @@ {{ apiDomain }}
- {{ $t('apiConfig.change') }} + {{ $t('apiConfig.change') }} @@ -48,7 +48,7 @@ import {checkAndSetApiUrl} from '@/helpers/checkAndSetApiUrl' import {success} from '@/message' import Message from '@/components/misc/message.vue' -import BaseButton from '@/components/base/BaseButton.vue' +import ButtonLink from '@/components/misc/ButtonLink.vue' const props = defineProps({ configureOpen: { diff --git a/src/components/misc/error.vue b/src/components/misc/error.vue index b2bdce37..67c854f8 100644 --- a/src/components/misc/error.vue +++ b/src/components/misc/error.vue @@ -1,15 +1,15 @@