π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(UI): Copy from another view toolbar menu button position issue due to children:flex-none css property on parent div
Ramesh Manecaf6a8e6a719
diff --git a/packages/nc-gui/components/smartsheet/toolbar/GroupByMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/GroupByMenu.vueindex a57a66263e..3670065a31 100644--- a/packages/nc-gui/components/smartsheet/toolbar/GroupByMenu.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/GroupByMenu.vue@@ -347,7 +347,7 @@ const getFieldsToGroupBy = (currentGroup: Group) => {</template></Draggable></div>- <div class="flex items-center justify-between children:flex-none mt-2 empty:hidden">+ <div class="flex items-center justify-between mt-2 empty:hidden"><NcDropdownv-if="availableColumns.length && fieldsToGroupBy.length > _groupBy.length && _groupBy.length < groupByLimit"v-model:visible="showCreateGroupBy"diff --git a/packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vueindex e3c2d05277..cbd6a17d94 100644--- a/packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue@@ -229,7 +229,7 @@ onMounted(() => {</div></div>- <div class="flex items-center justify-between children:flex-none empty:hidden pr-4 mt-1 mb-2">+ <div class="flex items-center justify-between empty:hidden pr-4 mt-1 mb-2"><NcDropdownv-if="availableColumns.length"v-model:visible="showCreateSort"diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vueindex 9c82e54af8..5190ecb4c1 100644--- a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue@@ -297,11 +297,9 @@ defineOptions({</NcMenuItem></template>- <NcDivider- v-if="isEeUI && isUIAllowed('viewCreateOrEdit') && view?.is_default && isCopyViewConfigFromAnotherViewFeatureEnabled"- />+ <NcDivider v-if="copyViewConfigMenuItemStatus.isVisible && view?.is_default" /><SmartsheetToolbarNotAllowedTooltip- v-if="isEeUI && isUIAllowed('viewCreateOrEdit') && isCopyViewConfigFromAnotherViewFeatureEnabled"+ v-if="copyViewConfigMenuItemStatus.isVisible":enabled="copyViewConfigMenuItemStatus.isDisabled"><template #title>diff --git a/packages/nc-gui/store/views.ts b/packages/nc-gui/store/views.tsindex b80b373008..60a40fabb5 100644--- a/packages/nc-gui/store/views.ts+++ b/packages/nc-gui/store/views.ts@@ -808,9 +808,11 @@ export const useViewsStore = defineStore('viewsStore', () => {const result = {isDisabled: false,tooltip: '',- isVisible: isEeUI && isUIAllowed('viewCreateOrEdit'),+ isVisible: isEeUI && isUIAllowed('viewCreateOrEdit') && isCopyViewConfigFromAnotherViewFeatureEnabled.value,}+ if (!view) return result+if (view?.lock_type === LockType.Personal && !isUserViewOwner(view)) {result.isDisabled = trueresult.tooltip = t('tooltip.onlyViewOwnerCanCopyViewConfig')