Skip to content

Commit e18e783

Browse files
authored
Ensure that the user source form works with the new LocalBaserowTableSelector changes. (baserow#4471)
1 parent decacfb commit e18e783

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Resolved a bug which prevented user sources from being created or updated with a user source table.",
4+
"issue_origin": "github",
5+
"issue_number": null,
6+
"domain": "builder",
7+
"bullet_points": [],
8+
"created_at": "2025-12-17"
9+
}

enterprise/web-frontend/modules/baserow_enterprise/integrations/localBaserow/components/userSources/LocalBaserowUserSourceForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<form>
33
<LocalBaserowTableSelector
44
v-model="computedTableId"
5-
disallow-data-synced-tables
65
class="local-baserow-user-source-form__table-selector"
6+
:service-type="userSourceType"
77
:databases="integration.context_data.databases"
88
:display-view-dropdown="false"
99
dropdown-size="large"

enterprise/web-frontend/modules/baserow_enterprise/integrations/userSourceTypes.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ export class LocalBaserowUserSourceType extends UserSourceType {
6666
}_${userSource.role_field_id || 0}`
6767
}
6868

69+
/**
70+
* The Local Baserow user source will only work on tables which are not data-synced.
71+
* @param {Array} tables - The array of tables to filter.
72+
* @returns {Array} - The supported tables.
73+
*/
74+
supportedTables(tables) {
75+
return tables.filter((table) => !table.is_data_sync)
76+
}
77+
6978
/**
7079
* Returns the allowed field type list for the role field.
7180
* It's defined here so that it can be changed by a plugin.

web-frontend/modules/integrations/localBaserow/components/services/LocalBaserowDeleteRowServiceForm.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
enable-row-id
55
v-bind="$attrs"
66
:enable-view-picker="false"
7-
disallow-data-synced-tables
87
v-on="$listeners"
98
/>
109
</template>

web-frontend/modules/integrations/localBaserow/components/services/LocalBaserowUpdateRowServiceForm.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<UpsertRowWorkflowActionForm
33
enable-row-id
4-
:disallow-data-synced-tables="false"
54
v-bind="$attrs"
65
v-on="$listeners"
76
/>

0 commit comments

Comments
 (0)