diff --git a/resources/js/Components/Common/UpgradeBadge.vue b/resources/js/Components/Common/UpgradeBadge.vue index 62ef4c9a..d5f18454 100644 --- a/resources/js/Components/Common/UpgradeBadge.vue +++ b/resources/js/Components/Common/UpgradeBadge.vue @@ -1,13 +1,18 @@ - + Upgrade - + diff --git a/resources/js/Components/Common/UpgradeModal.vue b/resources/js/Components/Common/UpgradeModal.vue new file mode 100644 index 00000000..f4fe9b1a --- /dev/null +++ b/resources/js/Components/Common/UpgradeModal.vue @@ -0,0 +1,62 @@ + + + + + + + Upgrade Plan + + + + + + + + + + + Project and Task Estimates is only + available in solidtime Professional. + + + If you want to use this feature, + please upgrade to a paid plan. + + + + + + Go to Billing + + + + + + + Close + + + + + diff --git a/resources/js/utils/billing.ts b/resources/js/utils/billing.ts index 34ba995f..b83ef6e1 100644 --- a/resources/js/utils/billing.ts +++ b/resources/js/utils/billing.ts @@ -59,7 +59,6 @@ export function hasActiveSubscription() { } export function isAllowedToPerformPremiumAction() { - return true; return ( !isBillingActivated() || (isBillingActivated() && hasActiveSubscription()) ||
+ Project and Task Estimates is only + available in solidtime Professional. +
+ If you want to use this feature, + please upgrade to a paid plan. +