File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
services/static-webserver/client/source/class/osparc/jobs Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ qx.Class.define("osparc.jobs.JobsBrowser", {
2222 construct ( ) {
2323 this . base ( arguments ) ;
2424
25- this . _setLayout ( new qx . ui . layout . VBox ( ) ) ;
25+ this . _setLayout ( new qx . ui . layout . VBox ( 10 ) ) ;
2626
27+ this . getChildControl ( "jobs-filter" ) ;
28+ this . getChildControl ( "jobs-ongoing" ) ;
2729 this . getChildControl ( "jobs-table" ) ;
2830 } ,
2931
@@ -43,6 +45,27 @@ qx.Class.define("osparc.jobs.JobsBrowser", {
4345 _createChildControlImpl : function ( id ) {
4446 let control ;
4547 switch ( id ) {
48+ case "header-filter" :
49+ control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 5 ) ) ;
50+ this . _add ( control ) ;
51+ break ;
52+ case "jobs-filter" :
53+ control = new osparc . filter . TextFilter ( "text" , "jobsList" ) . set ( {
54+ allowStretchX : true ,
55+ margin : 0
56+ } ) ;
57+ this . getChildControl ( "header-filter" ) . add ( control , {
58+ flex : 1
59+ } ) ;
60+ break ;
61+ case "jobs-ongoing" :
62+ control = new qx . ui . form . CheckBox ( ) . set ( {
63+ label : "Hide finished jobs" ,
64+ value : true ,
65+ enabled : false ,
66+ } ) ;
67+ this . getChildControl ( "header-filter" ) . add ( control ) ;
68+ break ;
4669 case "jobs-table" :
4770 control = new osparc . jobs . JobsTable ( ) ;
4871 this . _add ( control ) ;
You can’t perform that action at this time.
0 commit comments