π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): reload view config
Ramesh Mane799b7d9db5fa
diff --git a/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vueindex 03c73e574a..568f2ace51 100644--- a/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vue@@ -67,12 +67,6 @@ const draftFilter = ref({})const queryFilterOpen = ref(false)eventBus.on(async (event, column: ColumnType) => {- if (!column) return-- if (event === SmartsheetStoreEvents.FILTER_ADD) {- draftFilter.value = { fk_column_id: column.id }- open.value = true- }if (event === SmartsheetStoreEvents.FILTER_RELOAD && activeView?.value?.id) {await loadFilters({hookId: undefined,@@ -81,6 +75,13 @@ eventBus.on(async (event, column: ColumnType) => {})filtersLength.value = nonDeletedFilters.value.length || 0}++ if (!column) return++ if (event === SmartsheetStoreEvents.FILTER_ADD) {+ draftFilter.value = { fk_column_id: column.id }+ open.value = true+ }})const combinedFilterLength = computed(() => {diff --git a/packages/nc-gui/lib/enums.ts b/packages/nc-gui/lib/enums.tsindex 4870236d17..cbab8f0774 100644--- a/packages/nc-gui/lib/enums.ts+++ b/packages/nc-gui/lib/enums.ts@@ -80,6 +80,7 @@ export enum SmartsheetStoreEvents {CELL_SELECTED = 'cell-selected',FIELD_UPDATE = 'field-update',ROW_COLOR_UPDATE = 'row-color-update',+ ROW_COLOR_RELOAD = 'row-color-reload',TRIGGER_RE_RENDER = 'trigger-re-render',ON_ROW_COLOUR_INFO_UPDATE = 'on-row-colour-info-update',}