@@ -562,6 +562,7 @@ export const TableToolbarComp = (function () {
562
562
filter : stateComp < TableFilter > ( { stackType : "and" , filters : [ ] } ) ,
563
563
position : dropdownControl ( positionOptions , "below" ) ,
564
564
columnSeparator : withDefault ( StringControl , ',' ) ,
565
+ showUpdateButtons : withDefault ( BoolControl , true ) ,
565
566
} ;
566
567
567
568
return new ControlNodeCompBuilder ( childrenMap , ( props , dispatch ) => {
@@ -587,6 +588,7 @@ export const TableToolbarComp = (function () {
587
588
label : trans ( "table.fixedToolbar" ) ,
588
589
tooltip : trans ( "table.fixedToolbarTooltip" )
589
590
} ) ,
591
+ children . showUpdateButtons . propertyView ( { label : trans ( "table.showUpdateButtons" ) } ) ,
590
592
children . showFilter . propertyView ( { label : trans ( "table.showFilter" ) } ) ,
591
593
children . showRefresh . propertyView ( { label : trans ( "table.showRefresh" ) } ) ,
592
594
children . showDownload . propertyView ( { label : trans ( "table.showDownload" ) } ) ,
@@ -816,7 +818,7 @@ export function TableToolbar(props: {
816
818
}
817
819
} }
818
820
/>
819
- { hasChange && (
821
+ { hasChange && toolbar . showUpdateButtons && (
820
822
< SaveChangeButtons >
821
823
< Button onClick = { onCancelChanges } > { trans ( "cancel" ) } </ Button >
822
824
< Button type = "primary" onClick = { onSaveChanges } >
0 commit comments