Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ qx.Class.define("osparc.MaintenanceTracker", {

statics: {
CHECK_INTERVAL: 15*60*1000, // Check every 15'
CLOSABLE_WARN_IN_ADVANCE: 48*60*60*1000, // Show Closable Ribbon Message 48h in advance
CLOSABLE_WARN_IN_ADVANCE: 4*24*60*60*1000, // Show Closable Ribbon Message 4 days in advance
PERMANENT_WARN_IN_ADVANCE: 60*60*1000 // Show Permanent Ribbon Message 60' in advance
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ qx.Class.define("osparc.NewUITracker", {
let msg = "";
msg += qx.locale.Manager.tr("A new version of the application is now available.");
msg += "<br>";
msg += qx.locale.Manager.tr("Click the Reload button to get the latest features.");
msg += qx.locale.Manager.tr("Reload the page to get the latest features.");
// permanent message
const flashMessage = osparc.FlashMessenger.logAs(msg, "INFO", 0).set({
osparc.FlashMessenger.logAs(msg, "INFO", 0).set({
maxWidth: 500
});
const reloadButton = osparc.utils.Utils.reloadNoCacheButton();
flashMessage.addWidget(reloadButton);
// stop tracker in case it was running
this.stopTracker();
}
})
.catch(() => setTimeout(() => checkNewUI(), 5*1000));
};

checkNewUI();
this.__checkInterval = setInterval(checkNewUI, this.self().CHECK_INTERVAL);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ qx.Class.define("osparc.desktop.MainPage", {
// Some resources request before building the main stack
osparc.MaintenanceTracker.getInstance().startTracker();
osparc.CookieExpirationTracker.getInstance().startTracker();
// osparc.NewUITracker.getInstance().startTracker();
osparc.NewUITracker.getInstance().startTracker();

const store = osparc.store.Store.getInstance();
const preloadPromises = [];
Expand Down
Loading