Skip to content

Commit e8102c5

Browse files
committed
walletName on top of credits indicator
1 parent 6cfe808 commit e8102c5

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,26 @@ qx.Class.define("osparc.desktop.credits.BillingCenter", {
4343

4444
statics: {
4545
createMiniWalletView: function() {
46-
const layout = new qx.ui.container.Composite(new qx.ui.layout.VBox(8)).set({
46+
const layout = new qx.ui.container.Composite(new qx.ui.layout.VBox(6)).set({
4747
alignX: "center",
4848
minWidth: 120,
4949
maxWidth: 150
5050
});
5151

52-
const store = osparc.store.Store.getInstance();
52+
const walletName = new qx.ui.basic.Label().set({
53+
alignX: "center"
54+
});
55+
layout.add(walletName);
5356
const creditsIndicator = new osparc.desktop.credits.CreditsIndicator();
54-
store.bind("contextWallet", creditsIndicator, "wallet");
5557
layout.add(creditsIndicator);
58+
const store = osparc.store.Store.getInstance();
59+
store.bind("contextWallet", walletName, "value", {
60+
converter: wallet => wallet.getName()
61+
});
62+
store.bind("contextWallet", walletName, "toolTipText", {
63+
converter: wallet => wallet.getName()
64+
});
65+
store.bind("contextWallet", creditsIndicator, "wallet");
5666

5767
layout.add(new qx.ui.core.Spacer(15, 15));
5868

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ qx.Class.define("osparc.desktop.wallets.WalletListItem", {
8181
control = new qx.ui.basic.Label().set({
8282
font: "text-14"
8383
});
84+
control.bind("value", control, "toolTipText");
8485
this._add(control, {
8586
row: 0,
8687
column: 0,

0 commit comments

Comments
 (0)