Skip to content

Commit 4ee38eb

Browse files
option to show/hide submit/cancel buttons in table toolbar
1 parent 1e1e481 commit 4ee38eb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ export const TableToolbarComp = (function () {
562562
filter: stateComp<TableFilter>({ stackType: "and", filters: [] }),
563563
position: dropdownControl(positionOptions, "below"),
564564
columnSeparator: withDefault(StringControl, ','),
565+
showUpdateButtons: withDefault(BoolControl, true),
565566
};
566567

567568
return new ControlNodeCompBuilder(childrenMap, (props, dispatch) => {
@@ -587,6 +588,7 @@ export const TableToolbarComp = (function () {
587588
label: trans("table.fixedToolbar"),
588589
tooltip: trans("table.fixedToolbarTooltip")
589590
}),
591+
children.showUpdateButtons.propertyView({ label: trans("table.showUpdateButtons")}),
590592
children.showFilter.propertyView({ label: trans("table.showFilter") }),
591593
children.showRefresh.propertyView({ label: trans("table.showRefresh") }),
592594
children.showDownload.propertyView({ label: trans("table.showDownload") }),
@@ -816,7 +818,7 @@ export function TableToolbar(props: {
816818
}
817819
}}
818820
/>
819-
{hasChange && (
821+
{hasChange && toolbar.showUpdateButtons && (
820822
<SaveChangeButtons>
821823
<Button onClick={onCancelChanges}>{trans("cancel")}</Button>
822824
<Button type="primary" onClick={onSaveChanges}>

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,6 +2005,7 @@ export const en = {
20052005
"editMode": "Edit Mode",
20062006
"singleClick": "Single Click",
20072007
"doubleClick": "Double Click",
2008+
"showUpdateButtons": "Show Save/Cancel Buttons",
20082009
},
20092010

20102011

0 commit comments

Comments
 (0)