File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
enterprise/web-frontend/modules/baserow_enterprise/components/dateDependency Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div
3- v-if =" showEntry && featureFlagEnabled && (hasPermission || !featureEnabled )"
3+ v-if =" showEntry && featureFlagEnabled && (hasPermission || !hasFeature )"
44 class =" context__menu-item"
55 >
66 <div >
77 <a
88 class =" context__menu-item-link"
99 @click ="
1010 () => {
11- if (featureEnabled ) {
11+ if (hasFeature ) {
1212 $refs.dateDependencyModal.show()
1313 } else {
1414 $refs.paidFeaturesModal.show()
1919 >
2020 <i class =" context__menu-item-icon baserow-icon-dependency" ></i >
2121 {{ $t('dateDependencyModal.contextMenuItemLabel') }}
22- <div v-if =" deactivated " class =" deactivated-label" >
22+ <div v-if =" !hasFeature " class =" deactivated-label" >
2323 <i class =" iconoir-lock" ></i >
2424 </div >
2525 </a >
@@ -70,7 +70,7 @@ export default {
7070 },
7171 },
7272 computed: {
73- featureEnabled () {
73+ hasFeature () {
7474 return this .$hasFeature (
7575 EnterpriseFeatures .DATE_DEPENDENCY ,
7676 this .database .workspace .id
@@ -87,6 +87,8 @@ export default {
8787 )
8888 },
8989 showEntry () {
90+ // Menu entry requested outside a field context (i.e. table sidebar menu,
91+ // view menu), so we can show it always.
9092 if (! this .field ) {
9193 return true
9294 }
You can’t perform that action at this time.
0 commit comments