@@ -56,14 +56,24 @@ qx.Class.define("osparc.form.renderer.PropForm", {
5656 return new qx . ui . basic . Atom ( "" , "osparc/loading.gif" ) ;
5757 } ,
5858
59- getRetrievedAtom : function ( success ) {
60- const icon = success ? "@FontAwesome5Solid/check/12" : "@FontAwesome5Solid/times/12" ;
61- return new qx . ui . basic . Atom ( "" , icon ) ;
59+ getDownloadingAtom : function ( ) {
60+ return new qx . ui . basic . Atom ( "" , "@FontAwesome5Solid/download/12" ) ;
61+ } ,
62+
63+ getUploadingAtom : function ( ) {
64+ return new qx . ui . basic . Atom ( "" , "@FontAwesome5Solid/upload/12" ) ;
65+ } ,
66+
67+ getFailedAtom : function ( ) {
68+ return new qx . ui . basic . Atom ( "" , "@FontAwesome5Solid/times/12" ) ;
69+ } ,
70+
71+ getSucceededAtom : function ( ) {
72+ return new qx . ui . basic . Atom ( "" , "@FontAwesome5Solid/check/12" ) ;
6273 } ,
6374
6475 getRetrievedEmpty : function ( ) {
65- const icon = "@FontAwesome5Solid/dot-circle/10" ;
66- return new qx . ui . basic . Atom ( "" , icon ) ;
76+ return new qx . ui . basic . Atom ( "" , "@FontAwesome5Solid/dot-circle/10" ) ;
6777 } ,
6878
6979 GRID_POS : {
@@ -84,7 +94,9 @@ qx.Class.define("osparc.form.renderer.PropForm", {
8494 failed : - 1 ,
8595 empty : 0 ,
8696 retrieving : 1 ,
87- succeed : 2
97+ downloading : 2 ,
98+ uploading : 3 ,
99+ succeed : 4
88100 }
89101 } ,
90102
@@ -527,8 +539,10 @@ qx.Class.define("osparc.form.renderer.PropForm", {
527539 }
528540 } ,
529541
530- retrievingPortData : function ( portId ) {
531- const status = this . self ( ) . RETRIEVE_STATUS . retrieving ;
542+ retrievingPortData : function ( portId , status ) {
543+ if ( ! status ) {
544+ status = this . self ( ) . RETRIEVE_STATUS . retrieving ;
545+ }
532546 if ( portId ) {
533547 let data = this . _getCtrlFieldChild ( portId ) ;
534548 if ( data ) {
@@ -580,16 +594,22 @@ qx.Class.define("osparc.form.renderer.PropForm", {
580594 let icon ;
581595 switch ( status ) {
582596 case this . self ( ) . RETRIEVE_STATUS . failed :
583- icon = this . self ( ) . getRetrievedAtom ( false ) ;
597+ icon = this . self ( ) . getFailedAtom ( ) ;
584598 break ;
585599 case this . self ( ) . RETRIEVE_STATUS . empty :
586600 icon = this . self ( ) . getRetrievedEmpty ( ) ;
587601 break ;
588602 case this . self ( ) . RETRIEVE_STATUS . retrieving :
589603 icon = this . self ( ) . getRetrievingAtom ( ) ;
590604 break ;
605+ case this . self ( ) . RETRIEVE_STATUS . downloading :
606+ icon = this . self ( ) . getDownloadingAtom ( ) ;
607+ break ;
608+ case this . self ( ) . RETRIEVE_STATUS . uploading :
609+ icon = this . self ( ) . getUploadingAtom ( ) ;
610+ break ;
591611 case this . self ( ) . RETRIEVE_STATUS . succeed :
592- icon = this . self ( ) . getRetrievedAtom ( true ) ;
612+ icon = this . self ( ) . getSucceededAtom ( ) ;
593613 break ;
594614 }
595615 icon . key = portId ;
0 commit comments