π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
feat: remove create view btn ee version
Ramesh Manee95902d2bc68
diff --git a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vueindex a743ed4dec..8eb54455e9 100644--- a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue+++ b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue@@ -8,6 +8,10 @@ const props = defineProps<{source: Source}>()+const emits = defineEmits<{+ (event: 'createSection'): void+}>()+const { $e } = useNuxtApp()const alignLeftLevel = toRef(props, 'alignLeftLevel')@@ -106,6 +110,11 @@ async function onOpenModal({sourceId: table.value?.source_id,})}++function onCreateSection() {+ isOpen.value = false+ emits('createSection')+}</script><template>@@ -208,6 +217,14 @@ async function onOpenModal({</NcMenuItem></NcTooltip></template>++ <template v-if="isEeUI">+ <!-- Section -->+ <NcDivider />++ <DashboardTreeViewCreateViewBtnSectionMenu @create-section="onCreateSection" />+ </template>+<template v-if="isAiFeaturesEnabled"><NcDivider /><NcTooltip :title="`Auto suggest views for ${table?.title || 'the current table'}`" placement="right">@@ -226,23 +243,21 @@ async function onOpenModal({</NcDropdown></template>-<style lang="scss" scoped>-.item {- @apply flex flex-row items-center w-36 justify-between;-}--.item-inner {- @apply flex flex-row items-center gap-x-1.75;-}--.plus {- @apply text-nc-content-gray-muted;-}-</style>-<style lang="scss">.nc-view-create-dropdown {@apply !max-w-43 !min-w-43;++ .item {+ @apply flex flex-row items-center w-36 justify-between;+ }++ .item-inner {+ @apply flex flex-row items-center gap-x-1.75;+ }++ .plus {+ @apply text-nc-content-gray-muted;+ }}.nc-view-create-dropdown-left-1 {diff --git a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn/SectionMenu.vue b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn/SectionMenu.vuenew file mode 100644index 0000000000..377141faf0--- /dev/null+++ b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn/SectionMenu.vue@@ -0,0 +1,9 @@+<script lang="ts" setup>+const emits = defineEmits<{+ (event: 'createSection'): void+}>()+</script>++<template>+ <NcSpanHidden />+</template>