File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
services/static-webserver/client/source/class/osparc/navigation Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -112,20 +112,19 @@ qx.Class.define("osparc.navigation.NavigationBar", {
112112 converter : s => s ? "visible" : "excluded"
113113 } ) ;
114114
115- if ( osparc . utils . Utils . isDevelopmentPlatform ( ) ) {
116- const savingStudyIcon = this . getChildControl ( "saving-study-icon" ) ;
117- this . bind ( "study" , savingStudyIcon , "visibility" , {
118- converter : s => {
119- if ( s ) {
120- s . addListener ( "changeSavePending" , e => {
121- const isSaving = e . getData ( ) ;
122- savingStudyIcon . setVisibility ( isSaving ? "visible" : "excluded" ) ;
123- } ) ;
124- }
125- return "excluded" ;
115+ const savingStudyIcon = this . getChildControl ( "saving-study-icon" ) ;
116+ this . bind ( "study" , savingStudyIcon , "visibility" , {
117+ converter : s => {
118+ if ( s ) {
119+ s . addListener ( "changeSavePending" , e => {
120+ const isSaving = e . getData ( ) ;
121+ const uiMode = s . getUi ( ) . getMode ( ) ;
122+ savingStudyIcon . setVisibility ( isSaving && [ "workbench" , "pipeline" ] . includes ( uiMode ) ? "visible" : "excluded" ) ;
123+ } ) ;
126124 }
127- } ) ;
128- }
125+ return "excluded" ;
126+ }
127+ } ) ;
129128
130129 // center-items
131130 this . getChildControl ( "read-only-info" ) ;
You can’t perform that action at this time.
0 commit comments