Skip to content

Commit 3c1ac64

Browse files
committed
comments
1 parent ea3b20d commit 3c1ac64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,16 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
165165
} else {
166166
const found = osparc.store.Store.getInstance().getWallets().find(w => w.getWalletId() === wallet["walletId"]);
167167
if (found) {
168-
// switch to that wallet
168+
// I have access to the wallet
169169
if (osparc.store.Store.getInstance().getContextWallet() !== found) {
170-
// inform the user that the context wallet has changed
170+
// switch to that wallet and inform the user that the context wallet has changed
171171
const text = qx.locale.Manager.tr("Switched to Credit Account") + " '" + found.getName() + "'";
172172
osparc.FlashMessenger.logAs(text);
173173
}
174174
osparc.store.Store.getInstance().setActiveWallet(found);
175175
openStudy();
176176
} else {
177+
// I do not have access to the wallet or it's being used
177178
// cancel and explain the user why
178179
const isRTCEnabled = osparc.utils.DisabledPlugins.isRTCEnabled();
179180
const msg = isRTCEnabled ?

0 commit comments

Comments
 (0)