Skip to content

Commit e55e332

Browse files
committed
"workbench" or "pipeline" only
1 parent 4857ee7 commit e55e332

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

services/static-webserver/client/source/class/osparc/navigation/NavigationBar.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)