From d0f18ffdfc7012450ef2cf266c2b93cd99896f8e Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 19 Feb 2026 14:58:23 +0100 Subject: [PATCH] refactor: use Phosphor components in Subscription.vue --- frontend/src/components/misc/Subscription.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/misc/Subscription.vue b/frontend/src/components/misc/Subscription.vue index aae0a1b3e..ee4a4f387 100644 --- a/frontend/src/components/misc/Subscription.vue +++ b/frontend/src/components/misc/Subscription.vue @@ -3,19 +3,23 @@ v-if="type === 'button'" v-tooltip="tooltipText" variant="secondary" - :icon="iconName" :disabled="disabled" @click="changeSubscription" > + {{ buttonText }} + {{ buttonText }} - + {{ buttonText }} @@ -44,7 +48,7 @@ import SubscriptionModel from '@/models/subscription' import type {ISubscription} from '@/modelTypes/ISubscription' import {success} from '@/message' -import type { IconProp } from '@fortawesome/fontawesome-svg-core' +import {PhBell, PhBellSlash} from '@phosphor-icons/vue' const props = withDefaults(defineProps<{ modelValue: ISubscription | null, @@ -91,7 +95,7 @@ const tooltipText = computed(() => { }) const buttonText = computed(() => props.modelValue ? t('task.subscription.unsubscribe') : t('task.subscription.subscribe')) -const iconName = computed(() => props.modelValue ? ['far', 'bell-slash'] : 'bell') +const iconComponent = computed(() => props.modelValue ? PhBellSlash : PhBell) const disabled = computed(() => props.modelValue && subscriptionEntity.value !== props.entity || false) function changeSubscription() {