File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1163,7 +1163,8 @@ class BootstrapTable extends Component {
1163
1163
btnGroup = { this . props . options . btnGroup }
1164
1164
toolBar = { this . props . options . toolBar }
1165
1165
reset = { this . state . reset }
1166
- isValidKey = { this . store . isValidKey } />
1166
+ isValidKey = { this . store . isValidKey }
1167
+ insertFailIndicator = { this . props . options . insertFailIndicator || Const . INSERT_FAIL_INDICATOR } />
1167
1168
</ div >
1168
1169
) ;
1169
1170
} else {
@@ -1448,7 +1449,8 @@ BootstrapTable.propTypes = {
1448
1449
expanding : PropTypes . array ,
1449
1450
onlyOneExpanding : PropTypes . bool ,
1450
1451
beforeShowError : PropTypes . func ,
1451
- printToolBar : PropTypes . bool
1452
+ printToolBar : PropTypes . bool ,
1453
+ insertFailIndicator : PropTypes . string
1452
1454
} ) ,
1453
1455
fetchInfo : PropTypes . shape ( {
1454
1456
dataTotalSize : PropTypes . number
@@ -1595,7 +1597,8 @@ BootstrapTable.defaultProps = {
1595
1597
expanding : [ ] ,
1596
1598
onlyOneExpanding : false ,
1597
1599
beforeShowError : undefined ,
1598
- printToolBar : true
1600
+ printToolBar : true ,
1601
+ insertFailIndicator : Const . INSERT_FAIL_INDICATOR
1599
1602
} ,
1600
1603
fetchInfo : {
1601
1604
dataTotalSize : 0
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ const CONST_VAR = {
54
54
REMOTE_DROP_ROW : 'dropRow' ,
55
55
REMOTE_FILTER : 'filter' ,
56
56
REMOTE_SEARCH : 'search' ,
57
- REMOTE_EXPORT_CSV : 'exportCSV'
57
+ REMOTE_EXPORT_CSV : 'exportCSV' ,
58
+ INSERT_FAIL_INDICATOR : 'Form validate errors, please checking!'
58
59
} ;
59
60
60
61
CONST_VAR . REMOTE = { } ;
Original file line number Diff line number Diff line change @@ -65,10 +65,7 @@ class ToolBar extends Component {
65
65
}
66
66
67
67
displayCommonMessage = ( ) => {
68
- notice (
69
- 'error' ,
70
- 'Form validate errors, please checking!' ,
71
- '' ) ;
68
+ notice ( 'error' , this . props . insertFailIndicator , '' ) ;
72
69
}
73
70
74
71
validateNewRow ( newRow ) {
@@ -480,7 +477,8 @@ ToolBar.propTypes = {
480
477
toolBar : PropTypes . func ,
481
478
searchPosition : PropTypes . string ,
482
479
reset : PropTypes . bool ,
483
- isValidKey : PropTypes . func
480
+ isValidKey : PropTypes . func ,
481
+ insertFailIndicator : PropTypes . string
484
482
} ;
485
483
486
484
ToolBar . defaultProps = {
You can’t perform that action at this time.
0 commit comments