Skip to content

Commit 28f1b10

Browse files
committed
local radioGroup
1 parent e8824b0 commit 28f1b10

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ qx.Class.define("osparc.dashboard.SearchBarFilterProjects", {
3131
decorator: "rounded",
3232
});
3333

34-
this.__radioGroup = new qx.ui.form.RadioGroup();
35-
3634
this.__buildLayout();
3735

3836
// this.__buildFiltersMenu();
@@ -76,7 +74,6 @@ qx.Class.define("osparc.dashboard.SearchBarFilterProjects", {
7674
__resourceType: null,
7775
__currentFilter: null,
7876
__filtersMenu: null,
79-
__radioGroup: null,
8077

8178
_createChildControlImpl: function(id) {
8279
let control;
@@ -96,15 +93,13 @@ qx.Class.define("osparc.dashboard.SearchBarFilterProjects", {
9693
null,
9794
"left",
9895
);
99-
this.__radioGroup.add(control);
10096
this.getChildControl("context-buttons").add(control);
10197
break;
10298
case "templates-button":
10399
control = this.self().createToolbarRadioButton(
104100
this.tr("Templates"),
105101
"@FontAwesome5Solid/copy/14",
106102
);
107-
this.__radioGroup.add(control);
108103
this.getChildControl("context-buttons").add(control);
109104
break;
110105
case "public-projects-button":
@@ -114,7 +109,6 @@ qx.Class.define("osparc.dashboard.SearchBarFilterProjects", {
114109
null,
115110
"right",
116111
);
117-
this.__radioGroup.add(control);
118112
this.getChildControl("context-buttons").add(control);
119113
break;
120114
case "search-bar":
@@ -126,10 +120,13 @@ qx.Class.define("osparc.dashboard.SearchBarFilterProjects", {
126120
},
127121

128122
__buildLayout: function() {
129-
this.getChildControl("my-projects-button");
130-
this.getChildControl("templates-button");
131-
this.getChildControl("public-projects-button");
132-
this.getChildControl("search-bar");
123+
const radioGroup = new qx.ui.form.RadioGroup();
124+
const myProjectsButton = this.getChildControl("my-projects-button");
125+
const templatesButton = this.getChildControl("templates-button");
126+
const publicProjectsButton = this.getChildControl("public-projects-button");
127+
const searchBar = this.getChildControl("search-bar");
128+
129+
radioGroup.add(myProjectsButton, templatesButton, publicProjectsButton);
133130
},
134131

135132
__attachHideHandlers: function() {

0 commit comments

Comments
 (0)