Skip to content

Commit 93a71f8

Browse files
committed
reload button
1 parent 4970024 commit 93a71f8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

services/static-webserver/client/source/class/osparc/po/UsersPending.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ qx.Class.define("osparc.po.UsersPending", {
152152
_createChildControlImpl: function(id) {
153153
let control;
154154
switch (id) {
155+
case "reload-button":
156+
control = new qx.ui.form.Button(this.tr("Reload")).set({
157+
allowGrowX: false,
158+
});
159+
control.addListener("execute", () => {
160+
this.getChildControl("pending-users-layout").removeAll();
161+
this.__populatePendingUsersLayout();
162+
});
163+
this._add(control);
164+
break;
155165
case "pending-users-container":
156166
control = new qx.ui.container.Scroll();
157167
this._add(control, {
@@ -169,6 +179,7 @@ qx.Class.define("osparc.po.UsersPending", {
169179
},
170180

171181
_buildLayout: function() {
182+
this.getChildControl("reload-button");
172183
this.getChildControl("pending-users-container");
173184

174185
this.__populatePendingUsersLayout();

0 commit comments

Comments
 (0)