File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ constructor(winBoxService : WinboxService) {}
3535this .winBoxService .showLastWinbox ();
3636
3737// Maximize a WinBox by id.
38- this .winBoxService .maximizeWinbox (id: string | number);
38+ this .winBoxService .maximizeWinbox (id: string | number, state : boolean );
3939
4040// Minimize a WinBox by id.
41- this .winBoxService .minimizeWinbox (id: string | number);
41+ this .winBoxService .minimizeWinbox (id: string | number, state : boolean );
4242
4343// Close all the created winBox.
4444this .winBoxService .closeAllWinBoxes ();
Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ export class WinboxService {
8787 }
8888
8989 /** This method minimize a Winbox selected by id*/
90- public minimizeWinbox ( id : string | number ) {
91- this . winBoxStack . find ( ( winbox ) => winbox . id === id ) ?. minimize ( false ) ;
90+ public minimizeWinbox ( id : string | number , state : boolean ) {
91+ this . winBoxStack . find ( ( winbox ) => winbox . id === id ) ?. minimize ( state ) ;
9292 }
9393
9494 /** This method maximize a Winbox selected by id*/
95- public maximizeWinbox ( id : string | number ) {
96- this . winBoxStack . find ( ( winbox ) => winbox . id === id ) ?. maximize ( false ) ;
95+ public maximizeWinbox ( id : string | number , state : boolean ) {
96+ this . winBoxStack . find ( ( winbox ) => winbox . id === id ) ?. maximize ( state ) ;
9797 }
9898}
You can’t perform that action at this time.
0 commit comments