mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-10-16 09:43:18 +01:00
move upgrade modal to ui package and add trial status and cancel trial ui
This commit is contained in:
committed by
Constantin Graf
parent
11dd4e174e
commit
deb0c26e32
26
resources/js/packages/ui/src/UpgradeBadge.vue
Normal file
26
resources/js/packages/ui/src/UpgradeBadge.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script setup lang="ts">
|
||||
import { LockClosedIcon } from '@heroicons/vue/20/solid';
|
||||
import UpgradeModal from './UpgradeModal.vue';
|
||||
import type { UpgradeFeature } from './UpgradeModal/useUpgradeCta';
|
||||
import { ref } from 'vue';
|
||||
|
||||
defineProps<{
|
||||
// The Professional feature behind the badge, picks the variant of the upgrade modal
|
||||
feature: UpgradeFeature;
|
||||
}>();
|
||||
|
||||
const showUpgradeModal = ref(false);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UpgradeModal v-model:show="showUpgradeModal" :feature="feature" />
|
||||
<button
|
||||
data-testid="upgrade_badge"
|
||||
class="inline-flex bg-secondary hover:bg-tertiary px-2 py-1 rounded border border-border-secondary hover:border-border-tertiary items-center space-x-1"
|
||||
@click.prevent="showUpgradeModal = true">
|
||||
<LockClosedIcon class="w-3 text-text-tertiary"></LockClosedIcon>
|
||||
<span class="text-xs text-text-secondary font-semibold"> Upgrade </span>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user