feat: make subscription a BaseButton
This commit is contained in:
parent
24b7821c50
commit
187e62a7ec
1 changed files with 4 additions and 2 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue