π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
+ New Record not allowed from templates
Ramesh Manea086b2e03577
diff --git a/packages/nc-gui/components/virtual-cell/components/LinkedItems.vue b/packages/nc-gui/components/virtual-cell/components/LinkedItems.vueindex f5cc4b385b..ff1e64a250 100644--- a/packages/nc-gui/components/virtual-cell/components/LinkedItems.vue+++ b/packages/nc-gui/components/virtual-cell/components/LinkedItems.vue@@ -532,6 +532,7 @@ const handleKeyDown = (e: KeyboardEvent) => {v-if="!isPublic &&!isDataReadOnly &&+ !isTemplateMode &&isUIAllowed('dataEdit', externalBaseUserRoles) &&isUIAllowed('dataEdit') &&!isForm &&@@ -574,17 +575,19 @@ const handleKeyDown = (e: KeyboardEvent) => {{{ isMobileMode ? $t('title.linkMore') : $t('title.linkMoreRecords') }}</div></NcButton>- <NcButton- v-if="isTemplateMode && isLinkedTableAccessible"- size="small"- class="!hover:(bg-nc-bg-default text-nc-content-brand) !h-7 !text-small"- type="secondary"- @click="addNewBlueprintRecord"- >- <div class="flex items-center gap-1">- <MdiPlus v-if="!isMobileMode" class="h-4 w-4" /> Link a New Record- </div>- </NcButton>+ <NcTooltip v-if="isTemplateMode && isLinkedTableAccessible">+ <template #title>Define a new record that will be created and linked each time this template is used</template>+ <NcButton+ size="small"+ class="!hover:(bg-nc-bg-default text-nc-content-brand) !h-7 !text-small"+ type="secondary"+ @click="addNewBlueprintRecord"+ >+ <div class="flex items-center gap-1">+ <MdiPlus v-if="!isMobileMode" class="h-4 w-4" /> Add Blueprint+ </div>+ </NcButton>+ </NcTooltip></div><template v-if="!isNew && childrenList?.pageInfo && +childrenList.pageInfo.totalRows! > childrenListPagination.size"><div class="flex justify-center items-center">diff --git a/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue b/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vueindex 351d2ff064..17c4efaec6 100644--- a/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue+++ b/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue@@ -506,6 +506,7 @@ const handleKeyDown = (e: KeyboardEvent) => {v-if="!isPublic &&!isDataReadOnly &&+ !isTemplateMode &&isUIAllowed('dataEdit', externalBaseUserRoles) &&!isForm &&!relatedTableMeta?.synced@@ -536,6 +537,7 @@ const handleKeyDown = (e: KeyboardEvent) => {v-if="!isPublic &&!isDataReadOnly &&+ !isTemplateMode &&isUIAllowed('dataEdit', externalBaseUserRoles) &&!isForm &&!relatedTableMeta?.synced@@ -557,17 +559,19 @@ const handleKeyDown = (e: KeyboardEvent) => {</NcButton></template></PermissionsTooltip>- <NcButton- v-if="isTemplateMode && isLinkedTableAccessible"- size="small"- class="!hover:(bg-nc-bg-default text-nc-content-brand) !h-7 !text-small"- type="secondary"- @click="addNewBlueprintRecord"- >- <div class="flex items-center gap-1">- <MdiPlus v-if="!isMobileMode" class="h-4 w-4" /> Link a New Record- </div>- </NcButton>+ <NcTooltip v-if="isTemplateMode && isLinkedTableAccessible">+ <template #title>Define a new record that will be created and linked each time this template is used</template>+ <NcButton+ size="small"+ class="!hover:(bg-nc-bg-default text-nc-content-brand) !h-7 !text-small"+ type="secondary"+ @click="addNewBlueprintRecord"+ >+ <div class="flex items-center gap-1">+ <MdiPlus v-if="!isMobileMode" class="h-4 w-4" /> Add Blueprint+ </div>+ </NcButton>+ </NcTooltip></div><templatev-if="