mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
upgrade subscription popup
This commit is contained in:
37
resources/js/components/Subscription/PlanPeriodSwitcher.vue
Normal file
37
resources/js/components/Subscription/PlanPeriodSwitcher.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<div class="mb-2 text-right">
|
||||
<label
|
||||
:class="{ 'text-gray-400': !isSelectedYearlyPlans }"
|
||||
class="cursor-pointer text-xs font-bold"
|
||||
>
|
||||
{{ $t('Billed Annually') }}
|
||||
</label>
|
||||
<div class="relative inline-block w-12 select-none align-middle">
|
||||
<SwitchInput
|
||||
class="scale-75 transform"
|
||||
v-model="isSelectedYearlyPlans"
|
||||
:state="isSelectedYearlyPlans"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import SwitchInput from '../Others/Forms/SwitchInput'
|
||||
|
||||
export default {
|
||||
name: 'PlanPeriodSwitcher',
|
||||
components: {
|
||||
SwitchInput
|
||||
},
|
||||
watch: {
|
||||
'isSelectedYearlyPlans': function () {
|
||||
this.$emit('input', this.isSelectedYearlyPlans)
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isSelectedYearlyPlans: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user