Skip to content

Commit d12bb64

Browse files
committed
SingleWithIcon -> SingleWithWidget
1 parent 656c83d commit d12bb64

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

services/static-webserver/client/source/class/osparc/desktop/account/ProfilePage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ qx.Class.define("osparc.desktop.account.ProfilePage", {
9595

9696
const visibleIcon = "@FontAwesome5Solid/eye/12";
9797
const hiddenIcon = "@FontAwesome5Solid/eye-slash/12";
98-
const icons = {
98+
const widgets = {
9999
0: this.__userPrivacyModel.getHideUsername() ? hiddenIcon : visibleIcon,
100100
1: this.__userPrivacyModel.getHideFullname() ? hiddenIcon : visibleIcon,
101101
2: this.__userPrivacyModel.getHideFullname() ? hiddenIcon : visibleIcon,
102102
3: this.__userPrivacyModel.getHideEmail() ? hiddenIcon : visibleIcon,
103103
};
104-
this.__userProfileRenderer.setIcons(icons);
104+
this.__userProfileRenderer.setWidgets(widgets);
105105
}
106106
this.__updatePrivacyBtn.setEnabled(false);
107107
},
@@ -143,8 +143,8 @@ qx.Class.define("osparc.desktop.account.ProfilePage", {
143143
if (osparc.store.StaticInfo.getInstance().is2FARequired()) {
144144
profileForm.add(phoneNumber, "Phone Number", null, "phoneNumber");
145145
}
146-
const singleWithIcon = this.__userProfileRenderer = new osparc.ui.form.renderer.SingleWithIcon(profileForm);
147-
box.add(singleWithIcon);
146+
const singleWithWidget = this.__userProfileRenderer = new osparc.ui.form.renderer.SingleWithWidget(profileForm);
147+
box.add(singleWithWidget);
148148

149149
const expirationLayout = new qx.ui.container.Composite(new qx.ui.layout.HBox(5)).set({
150150
paddingLeft: 16,

services/static-webserver/client/source/class/osparc/ui/form/renderer/SingleWithIcon.js renamed to services/static-webserver/client/source/class/osparc/ui/form/renderer/SingleWithWidget.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@
1515
1616
************************************************************************ */
1717

18-
qx.Class.define("osparc.ui.form.renderer.SingleWithIcon", {
18+
qx.Class.define("osparc.ui.form.renderer.SingleWithWidget", {
1919
extend: qx.ui.form.renderer.Single,
2020

21-
construct: function(form, icons) {
22-
if (icons) {
23-
this.__icons = icons;
21+
construct: function(form, widgets) {
22+
if (widgets) {
23+
this.__widgets = widgets;
2424
} else {
25-
this.__icons = {};
25+
this.__widgets = {};
2626
}
2727

2828
this.base(arguments, form);
2929
},
3030

3131
members: {
32-
__icons: null,
32+
__widgets: null,
3333

34-
setIcons: function(icons) {
35-
this.__icons = icons;
34+
setWidgets: function(widgets) {
35+
this.__widgets = widgets;
3636

3737
this._onFormChange();
3838
},
@@ -45,8 +45,8 @@ qx.Class.define("osparc.ui.form.renderer.SingleWithIcon", {
4545
let row = title === null ? 0 : 1;
4646

4747
for (let i = 0; i < items.length; i++) {
48-
if (i in this.__icons) {
49-
const image = new qx.ui.basic.Image(this.__icons[i]).set({
48+
if (i in this.__widgets) {
49+
const image = new qx.ui.basic.Image(this.__widgets[i]).set({
5050
alignY: "middle",
5151
});
5252
this._add(image, {

0 commit comments

Comments
 (0)