Files
vuefilemanager/resources/js/components/Subscription/UserEmptySubscription.vue
2022-04-13 16:19:10 +02:00

46 lines
1.2 KiB
Vue

<template>
<div v-if="!hasSubscription" class="card shadow-card">
<FormLabel>
{{ $t('subscription') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
{{ $t('free_plan') }}
</b>
<b v-if="$store.getters.config.allowed_payments" class="mb-3 mb-8 block text-sm text-gray-400">
{{ $t('upgrade_to_get_more') }}
</b>
<ButtonBase
v-if="$store.getters.config.allowed_payments"
@click.native="$openSubscribeOptions"
type="submit"
button-style="theme"
class="mt-4 w-full"
>
{{ $t('upgrade_your_account') }}
</ButtonBase>
</div>
</template>
<script>
import InfoBox from '../UI/Others/InfoBox'
import FormLabel from '../UI/Labels/FormLabel'
import ButtonBase from '../UI/Buttons/ButtonBase'
export default {
name: 'UserEmptySubscription',
components: {
ButtonBase,
FormLabel,
InfoBox,
},
computed: {
hasSubscription() {
return this.$store.getters.user.data.relationships.subscription
},
},
}
</script>