Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: review changes

DarkPhoenix27045889491b163d
diff --git a/packages/nc-gui/components/dlg/View/Create.vue b/packages/nc-gui/components/dlg/View/Create.vue
index 4875a7b620..bb932b6823 100644
--- a/packages/nc-gui/components/dlg/View/Create.vue
+++ b/packages/nc-gui/components/dlg/View/Create.vue
@@ -1064,9 +1064,9 @@ watch(activeBaseId, () => {
</a-select-option>
</a-select>
</div>
- <PaymentUpgradeBadgeProvider :feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE">
+ <PaymentUpgradeBadgeProvider v-if="isEeUI" :feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE">
<template #default="{ click }">
- <div v-if="isEeUI" class="w-full space-y-2">
+ <div class="w-full space-y-2">
<NcButton
v-if="range.fk_to_column_id === null"
size="small"
@@ -1079,7 +1079,7 @@ watch(activeBaseId, () => {
</div>
<PaymentUpgradeBadge
class="ml-2"
- :limit-or-feature="$t('upgrade.upgradeToUseCalendarRangeSubtitle')"
+ :limit-or-feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE"
:content="
$t('upgrade.upgradeToUseCalendarRangeSubtitle', {
plan: getPlanTitle(PlanTitles.PLUS),
@@ -1089,11 +1089,11 @@ watch(activeBaseId, () => {
/>
</NcButton>
- <template v-else-if="isEeUI">
+ <template>
<div class="flex gap-2 items-center text-nc-content-gray-subtle">
{{ $t('activity.withEndDate') }}
<PaymentUpgradeBadge
- :limit-or-feature="$t('upgrade.upgradeToUseCalendarRangeSubtitle')"
+ :limit-or-feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE"
:content="
$t('upgrade.upgradeToUseCalendarRangeSubtitle', {
plan: getPlanTitle(PlanTitles.PLUS),
diff --git a/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue b/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue
index ef7b2d95ac..f7bddd2265 100644
--- a/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue
+++ b/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue
@@ -1013,7 +1013,7 @@ const expandRecord = (record: Row) => {
<div
v-for="(hour, index) in hours"
:key="index"
- class="flex h-13 relative border-1 group hover:bg-nc-bg-gray-extra-light border-white"
+ class="flex h-13 relative border-1 group hover:bg-nc-bg-gray-extralight border-nc-base-white"
data-testid="nc-calendar-day-hour"
@click="selectHour(hour)"
@dblclick="newRecord(hour)"
@@ -1030,7 +1030,7 @@ const expandRecord = (record: Row) => {
:class="{
'selected-hour': hour.isSame(selectedTime),
}"
- class="flex w-full border-l-gray-100 h-13 transition nc-calendar-day-hour relative border-1 group hover:bg-nc-bg-gray-extra-light border-white border-b-nc-border-gray-light"
+ class="flex w-full border-l-gray-100 h-13 transition nc-calendar-day-hour relative border-1 group hover:bg-nc-bg-gray-extralight border-nc-base-white border-b-nc-border-gray-light"
data-testid="nc-calendar-day-hour"
@click="selectHour(hour)"
@dblclick="newRecord(hour)"
diff --git a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vue b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vue
index e41cc09277..554083edb6 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vue
@@ -279,7 +279,7 @@ const onValueChange = async () => {
<component :is="iconMap.plus" class="h-4 w-4" />
{{ $t('activity.endDate') }}
<PaymentUpgradeBadge
- :limit-or-feature="$t('upgrade.upgradeToUseCalendarRangeSubtitle')"
+ :limit-or-feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE"
:content="
$t('upgrade.upgradeToUseCalendarRangeSubtitle', {
plan: getPlanTitle(PlanTitles.PLUS),
@@ -290,11 +290,11 @@ const onValueChange = async () => {
</div>
</NcButton>
- <template v-else-if="isEeUI">
+ <template v-else>
<div class="flex gap-2 items-center">
{{ $t('activity.withEndDate') }}
<PaymentUpgradeBadge
- :limit-or-feature="$t('upgrade.upgradeToUseCalendarRangeSubtitle')"
+ :limit-or-feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE"
:content="
$t('upgrade.upgradeToUseCalendarRangeSubtitle', {
plan: getPlanTitle(PlanTitles.PLUS),