@@ -21,8 +21,9 @@ export class MinionsPanel extends Panel {
2121 this . _addMenuItemStateApply ( this . panelMenu , "*" ) ;
2222 this . _addMenuItemStateApplyTest ( this . panelMenu , "*" ) ;
2323 this . addSearchButton ( ) ;
24+ this . addFilterButton ( ) ;
2425 this . addWarningField ( ) ;
25- this . addTable ( [ "-menu-" , "Minion" , "Status" , "Salt version" , "OS version" ] ) ;
26+ this . addTable ( [ "-select-" , "- menu-", "Minion" , "Status" , "Salt version" , "OS version" ] ) ;
2627 this . setTableSortable ( "Minion" , "asc" ) ;
2728 this . setTableClickable ( "cmd" ) ;
2829 this . addMsg ( ) ;
@@ -42,6 +43,9 @@ export class MinionsPanel extends Panel {
4243
4344 const runnerManageVersionsPromise = this . api . getRunnerManageVersions ( ) ;
4445
46+ const selectVisible = Utils . getStorageItemBoolean ( "session" , "select_visible" , false ) ;
47+ this . showSelectColumn ( selectVisible ) ;
48+
4549 this . loadMinionsTxt ( ) ;
4650
4751 wheelKeyListAllPromise . then ( ( pWheelKeyListAllData ) => {
@@ -180,7 +184,7 @@ export class MinionsPanel extends Panel {
180184 }
181185
182186 updateOfflineMinion ( pMinionId , pMinionsDict ) {
183- super . updateOfflineMinion ( pMinionId , pMinionsDict ) ;
187+ super . updateOfflineMinion ( pMinionId , pMinionsDict , true ) ;
184188
185189 const minionTr = this . table . querySelector ( "#" + Utils . getIdFromMinionId ( pMinionId ) ) ;
186190
@@ -190,7 +194,7 @@ export class MinionsPanel extends Panel {
190194 }
191195
192196 updateMinion ( pMinionData , pMinionId , pAllMinionsGrains ) {
193- super . updateMinion ( pMinionData , pMinionId , pAllMinionsGrains ) ;
197+ super . updateMinion ( pMinionData , pMinionId , pAllMinionsGrains , true ) ;
194198
195199 const minionTr = this . table . querySelector ( "#" + Utils . getIdFromMinionId ( pMinionId ) ) ;
196200 this . _addMenuItemStateApply ( minionTr . dropdownmenu , pMinionId ) ;
@@ -210,14 +214,14 @@ export class MinionsPanel extends Panel {
210214 _addMenuItemStateApply ( pMenu , pMinionId ) {
211215 pMenu . addMenuItem ( "Apply state..." , ( ) => {
212216 const cmdArr = [ "state.apply" ] ;
213- this . runCommand ( "" , pMinionId , cmdArr ) ;
217+ this . runCommand ( "" , pMinionId , cmdArr , true ) ;
214218 } ) ;
215219 }
216220
217221 _addMenuItemStateApplyTest ( pMenu , pMinionId ) {
218222 pMenu . addMenuItem ( "Test state..." , ( ) => {
219223 const cmdArr = [ "state.apply" , "test=" , true ] ;
220- this . runCommand ( "" , pMinionId , cmdArr ) ;
224+ this . runCommand ( "" , pMinionId , cmdArr , true ) ;
221225 } ) ;
222226 }
223227
0 commit comments