π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): row height update issue in shared base and public view
Ramesh Maned233ceb67401
diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vueindex 788840661f..6dcd02916e 100644--- a/packages/nc-gui/components/smartsheet/Form.vue+++ b/packages/nc-gui/components/smartsheet/Form.vue@@ -2171,7 +2171,7 @@ const { message: templatedMessage } = useTemplatedMessage(<div class="text-center bg-white px-6 py-8 rounded-xl max-w-lg"><div class="text-2xl text-gray-800 font-bold">{{ $t('msg.info.yourCurrentRoleIs') }}- '<span class="capitalize"> {{ Object.keys(user.base_roles)?.[0] ?? ProjectRoles.NO_ACCESS }}</span+ '<span class="capitalize"> {{ Object.keys(user?.base_roles ?? {})?.[0] ?? ProjectRoles.NO_ACCESS }}</span>'.</div><div class="text-sm text-gray-700 pt-6">diff --git a/packages/nc-gui/components/smartsheet/Toolbar.vue b/packages/nc-gui/components/smartsheet/Toolbar.vueindex 4fa3e9e2ce..9b5959443c 100644--- a/packages/nc-gui/components/smartsheet/Toolbar.vue+++ b/packages/nc-gui/components/smartsheet/Toolbar.vue@@ -88,7 +88,7 @@ provide(IsToolbarIconMode, isToolbarIconMode)<SmartsheetToolbarSortListMenu v-if="isGrid || isGallery || isKanban" />- <SmartsheetToolbarRowColorFilterDropdown v-if="!isPublic && (isGrid || isGallery || isKanban)" />+ <SmartsheetToolbarRowColorFilterDropdown v-if="!isPublic && !isSharedBase && (isGrid || isGallery || isKanban)" /><SmartsheetToolbarBulkActionv-if="(isGrid || isGallery) && !isPublic && !isSharedBase && isUIAllowed('scriptExecute') && isViewActionsEnabled"@@ -133,7 +133,7 @@ provide(IsToolbarIconMode, isToolbarIconMode)<SmartsheetToolbarCalendarRange v-if="isCalendar && isViewOperationsAllowed" /><template v-if="isCalendar && !isMobileMode">- <SmartsheetToolbarRowColorFilterDropdown v-if="!isPublic && isViewOperationsAllowed" />+ <SmartsheetToolbarRowColorFilterDropdown v-if="!isPublic && !isSharedBase && isViewOperationsAllowed" /><SmartsheetToolbarFieldsMenu :show-system-fields="false" /><SmartsheetToolbarColumnFilterMenu v-if="isViewOperationsAllowed" />diff --git a/packages/nc-gui/components/smartsheet/toolbar/RowHeight.vue b/packages/nc-gui/components/smartsheet/toolbar/RowHeight.vueindex 9a205c9e4c..614968c109 100644--- a/packages/nc-gui/components/smartsheet/toolbar/RowHeight.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/RowHeight.vue@@ -58,11 +58,16 @@ const updateRowHeight = async (rh: number, undo = false) => {}try {- if (!isPublic.value && !isSharedBase.value && isUIAllowed('viewCreateOrEdit')) {- await updateViewMeta(view.value.id, ViewTypes.GRID, {+ await updateViewMeta(+ view.value.id,+ ViewTypes.GRID,+ {row_height: rh,- })- }+ },+ {+ skipNetworkCall: isPublic.value || isSharedBase.value || !isUIAllowed('viewCreateOrEdit'),+ },+ )open.value = false} catch (e: any) {