Skip to content

Commit a4cb8aa

Browse files
authored
🎨 [Frontend] Expose Tokens page to testers (#7847)
1 parent 93e7ab0 commit a4cb8aa

File tree

2 files changed

+5
-1
lines changed
  • services/static-webserver/client/source/class/osparc

2 files changed

+5
-1
lines changed

services/static-webserver/client/source/class/osparc/desktop/preferences/window/ShowAPIKey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ qx.Class.define("osparc.desktop.preferences.window.ShowAPIKey", {
7676
const hBox = this.__createEntry(title);
7777
if (label) {
7878
// partially hide the key and secret
79-
hBox.getChildren()[1].setValue(label.substring(1, 8) + "****")
79+
hBox.getChildren()[1].setValue(label.substring(0, 8) + "****")
8080
}
8181
return hBox;
8282
},

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ qx.Class.define("osparc.product.Utils", {
264264
},
265265

266266
showPreferencesTokens: function() {
267+
if (osparc.data.Permissions.getInstance().isTester()) {
268+
return true;
269+
}
270+
267271
if (this.isProduct("s4llite") || this.isProduct("tis") || this.isProduct("tiplite")) {
268272
return false;
269273
}

0 commit comments

Comments
 (0)