mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 16:38:21 +00:00
Merge branch 'main' into develop
This commit is contained in:
commit
7b840b7eb3
3 changed files with 9 additions and 5 deletions
2
.version
2
.version
|
|
@ -1 +1 @@
|
|||
1.2.2
|
||||
1.2.4
|
||||
|
|
@ -49,10 +49,12 @@ export function Table({
|
|||
|
||||
const actions = component.definition.properties.actions || { value: [] };
|
||||
const serverSidePaginationProperty = component.definition.properties.serverSidePagination;
|
||||
const serverSidePagination = serverSidePaginationProperty
|
||||
let serverSidePagination = serverSidePaginationProperty
|
||||
? resolveWidgetFieldValue(serverSidePaginationProperty.value, currentState)
|
||||
: false;
|
||||
|
||||
if (typeof serverSidePagination !== 'boolean') serverSidePagination = false;
|
||||
|
||||
const serverSideSearchProperty = component.definition.properties.serverSideSearch;
|
||||
const serverSideSearch = serverSideSearchProperty
|
||||
? resolveWidgetFieldValue(serverSideSearchProperty.value, currentState)
|
||||
|
|
@ -79,9 +81,11 @@ export function Table({
|
|||
const highlightSelectedRow = resolveWidgetFieldValue(highlightSelectedRowProperty, currentState) ?? false; // default is false for backward compatibility
|
||||
|
||||
const clientSidePaginationProperty = component.definition.properties.clientSidePagination?.value;
|
||||
const clientSidePagination =
|
||||
let clientSidePagination =
|
||||
resolveWidgetFieldValue(clientSidePaginationProperty, currentState) ?? !serverSidePagination; // default is true for backward compatibility
|
||||
|
||||
if (typeof clientSidePagination !== 'boolean') clientSidePagination = true;
|
||||
|
||||
const tableTypeProperty = component.definition.styles.tableType;
|
||||
let tableType = tableTypeProperty ? tableTypeProperty.value : 'table-bordered';
|
||||
tableType = tableType === '' ? 'table-bordered' : tableType;
|
||||
|
|
|
|||
|
|
@ -364,9 +364,9 @@ export const SubContainer = ({
|
|||
[optionName]: value,
|
||||
},
|
||||
};
|
||||
onComponentOptionChanged(parentComponent, 'data', newData);
|
||||
return onComponentOptionChanged(parentComponent, 'data', newData);
|
||||
} else {
|
||||
onComponentOptionChanged(component, optionName, value, extraProps);
|
||||
return onComponentOptionChanged(component, optionName, value, extraProps);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue