Skip to content

Commit fd6f54e

Browse files
if collection type isn't one of the known 3, don't show create option
Note: This is unrelated to the other changes in this PR.
1 parent 03205a1 commit fd6f54e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

client/src/components/Form/Elements/FormData/FormDataContextButtons.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ function createCollectionType(colType: string) {
106106
</BDropdownItem>
107107
</BDropdown>
108108
<BButton
109-
v-else-if="props.showViewCreateOptions"
109+
v-else-if="
110+
props.showViewCreateOptions && (!props.collectionType || COLLECTION_TYPE_TO_LABEL[props.collectionType])
111+
"
110112
v-b-tooltip.bottom.hover.noninteractive
111113
class="d-flex flex-gapx-1 align-items-center"
112114
:title="createTitle"

0 commit comments

Comments
 (0)