-
-
- Change page:
-
+
@@ -411,7 +417,7 @@
@commented="reloadComments"
:availableColumns="availableColumns"
:nodes="nodes"
- :queryParams="queryParams"
+ :query-params="queryParams"
>
@@ -452,11 +458,13 @@ import SpreadsheetNavDrawer from "@/components/project/spreadsheet/components/sp
import spreadsheet from "@/components/project/spreadsheet/mixins/spreadsheet";
import LockMenu from "@/components/project/spreadsheet/components/lockMenu";
import ExpandedForm from "@/components/project/spreadsheet/components/expandedForm";
+import Pagination from "@/components/project/spreadsheet/components/pagination";
export default {
mixins: [spreadsheet],
name: "rows-xc-data-table",
components: {
+ Pagination,
ExpandedForm,
LockMenu,
SpreadsheetNavDrawer,
diff --git a/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts b/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts
index 3784456d25..d207c71916 100644
--- a/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts
+++ b/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts
@@ -1020,6 +1020,13 @@ export class RestApiBuilder extends BaseApiBuilder {
hasMany: meta.hasMany,
});
+ /* Add new has many relation to virtual columns */
+ oldMeta.v = oldMeta.v || [];
+ oldMeta.v.push({
+ hm: meta.hasMany.find(hm => hm.rtn === tnp && hm.tn === tnc),
+ _cn: `${this.getTableNameAlias(tnp)} => ${this.getTableNameAlias(tnc)}`
+ })
+
await this.xcMeta.metaUpdate(this.projectId, this.dbAlias, 'nc_models', {
title: tnp,
meta: JSON.stringify(oldMeta),
@@ -1093,6 +1100,14 @@ export class RestApiBuilder extends BaseApiBuilder {
Object.assign(oldMeta, {
belongsTo: meta.belongsTo,
});
+
+ /* Add new belongs to relation to virtual columns */
+ oldMeta.v = oldMeta.v || [];
+ oldMeta.v.push({
+ bt: meta.belongsTo.find(hm => hm.rtn === tnp && hm.tn === tnc),
+ _cn: `${this.getTableNameAlias(tnp)} <= ${this.getTableNameAlias(tnc)}`
+ })
+
await this.xcMeta.metaUpdate(this.projectId, this.dbAlias, 'nc_models', {
title: tnc,
meta: JSON.stringify(oldMeta)
@@ -1660,5 +1675,4 @@ export class RestApiBuilder extends BaseApiBuilder {
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*
- */
-
+ */
\ No newline at end of file