File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3636 this . setTitleContents ( ) ;
3737 }
3838
39- this . togglePruned = function ( isHide ) {
40- this . pruneMessages = isHide ;
39+ this . togglePruned = function ( isPrune ) {
40+ this . pruneMessages = isPrune ;
4141 this . setTitleContents ( ) ;
42+
43+ this . tableElement . table ( 'setColumnConfiguration' , 'to' , {
44+ readOnly : isPrune
45+ } ) ;
4246 }
4347
4448 this . setToolbarContents = function ( tableToolbar ) {
Original file line number Diff line number Diff line change @@ -143,10 +143,6 @@ public function prepareTable()
143143 // Make table config, make default column read only
144144 $ config = $ this ->makeConfig ('config_table.yaml ' );
145145
146- if ($ this ->pruneMessages ) {
147- $ config ->columns ['to ' ]['readOnly ' ] = true ;
148- }
149-
150146 // Make table widget
151147 $ widget = $ this ->makeWidget (\Backend \Widgets \Table::class, $ config );
152148 $ widget ->bindToController ();
You can’t perform that action at this time.
0 commit comments