Skip to content

Commit d499877

Browse files
committed
reloadNoCacheButton
1 parent 81e441c commit d499877

File tree

1 file changed

+12
-0
lines changed
  • services/static-webserver/client/source/class/osparc/utils

1 file changed

+12
-0
lines changed

services/static-webserver/client/source/class/osparc/utils/Utils.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,18 @@ qx.Class.define("osparc.utils.Utils", {
249249
// window.location.href = window.location.href.replace(/#.*$/, "");
250250
},
251251

252+
reloadNoCacheButton: function() {
253+
const reloadButton = new qx.ui.form.Button().set({
254+
label: this.tr("Reload"),
255+
icon: "@FontAwesome5Solid/redo/14",
256+
});
257+
reloadButton.addListener("execute", () => {
258+
const noCacheUrl = window.location.href + "?qooxdoo:add-no-cache=true";
259+
console.log("noCacheUrl", noCacheUrl);
260+
});
261+
return reloadButton;
262+
},
263+
252264
getUniqueStudyName: function(preferredName, list) {
253265
let title = preferredName;
254266
const existingTitles = list.map(study => study.name);

0 commit comments

Comments
 (0)