Skip to content

Commit 432477c

Browse files
authored
Merge pull request #1516 from rocket-admin/backend_table_settings_rework
Add new parameters for table settings creation: list_per_page, list_fields, ordering, and ordering_field
2 parents fe67bd7 + 0c7f158 commit 432477c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backend/src/entities/table-settings/common-table-settings/table-settings.controller.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ export class TableSettingsController {
191191
@Body('icon') icon: string,
192192
@Body('allow_csv_export') allow_csv_export: boolean,
193193
@Body('allow_csv_import') allow_csv_import: boolean,
194+
@Body('list_per_page') list_per_page: number,
195+
@Body('list_fields') list_fields: string[],
196+
@Body('ordering') ordering: string,
197+
@Body('ordering_field') ordering_field: string,
194198
@UserId() userId: string,
195199
@MasterPassword() masterPwd: string,
196200
): Promise<FoundTableSettingsDs> {
@@ -215,6 +219,10 @@ export class TableSettingsController {
215219
icon: icon,
216220
allow_csv_export: allow_csv_export,
217221
allow_csv_import: allow_csv_import,
222+
list_fields,
223+
list_per_page,
224+
ordering,
225+
ordering_field,
218226
};
219227

220228
const errors = this.validateParameters(inputData);

0 commit comments

Comments
 (0)