feat: make subscription a BaseButton

This commit is contained in:
Dominik Pschenitschni 2022-01-30 13:40:34 +01:00
parent 24b7821c50
commit 187e62a7ec
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -9,7 +9,7 @@
> >
{{ buttonText }} {{ buttonText }}
</x-button> </x-button>
<a <BaseButton
v-else v-else
v-tooltip="tooltipText" v-tooltip="tooltipText"
@click="changeSubscription" @click="changeSubscription"
@ -19,13 +19,15 @@
<icon :icon="iconName"/> <icon :icon="iconName"/>
</span> </span>
{{ buttonText }} {{ buttonText }}
</a> </BaseButton>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {computed, shallowRef} from 'vue' import {computed, shallowRef} from 'vue'
import {useI18n} from 'vue-i18n' import {useI18n} from 'vue-i18n'
import BaseButton from '@/components/base/BaseButton.vue'
import SubscriptionService from '@/services/subscription' import SubscriptionService from '@/services/subscription'
import SubscriptionModel from '@/models/subscription' import SubscriptionModel from '@/models/subscription'