Skip to content

Commit 1f2125c

Browse files
odeimaizCopilot
andauthored
🎨 [Frontend] Check new UI version after logging in (#8084)
Co-authored-by: Copilot <[email protected]>
1 parent 9e46844 commit 1f2125c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

services/static-webserver/client/source/class/osparc/MaintenanceTracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ qx.Class.define("osparc.MaintenanceTracker", {
4141

4242
statics: {
4343
CHECK_INTERVAL: 15*60*1000, // Check every 15'
44-
CLOSABLE_WARN_IN_ADVANCE: 48*60*60*1000, // Show Closable Ribbon Message 48h in advance
44+
CLOSABLE_WARN_IN_ADVANCE: 4*24*60*60*1000, // Show Closable Ribbon Message 4 days in advance
4545
PERMANENT_WARN_IN_ADVANCE: 60*60*1000 // Show Permanent Ribbon Message 60' in advance
4646
},
4747

services/static-webserver/client/source/class/osparc/NewUITracker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ qx.Class.define("osparc.NewUITracker", {
3434
let msg = "";
3535
msg += qx.locale.Manager.tr("A new version of the application is now available.");
3636
msg += "<br>";
37-
msg += qx.locale.Manager.tr("Click the Reload button to get the latest features.");
37+
msg += qx.locale.Manager.tr("Reload the page to get the latest features.");
3838
// permanent message
39-
const flashMessage = osparc.FlashMessenger.logAs(msg, "INFO", 0).set({
39+
osparc.FlashMessenger.logAs(msg, "INFO", 0).set({
4040
maxWidth: 500
4141
});
42-
const reloadButton = osparc.utils.Utils.reloadNoCacheButton();
43-
flashMessage.addWidget(reloadButton);
42+
// stop tracker in case it was running
4443
this.stopTracker();
4544
}
4645
})
4746
.catch(() => setTimeout(() => checkNewUI(), 5*1000));
4847
};
48+
4949
checkNewUI();
5050
this.__checkInterval = setInterval(checkNewUI, this.self().CHECK_INTERVAL);
5151
},

services/static-webserver/client/source/class/osparc/desktop/MainPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ qx.Class.define("osparc.desktop.MainPage", {
5656
// Some resources request before building the main stack
5757
osparc.MaintenanceTracker.getInstance().startTracker();
5858
osparc.CookieExpirationTracker.getInstance().startTracker();
59-
// osparc.NewUITracker.getInstance().startTracker();
59+
osparc.NewUITracker.getInstance().startTracker();
6060

6161
const store = osparc.store.Store.getInstance();
6262
const preloadPromises = [];

0 commit comments

Comments
 (0)