Skip to content

Commit 90df009

Browse files
committed
[skip ci] SearchingCollaborators
1 parent 84d2c03 commit 90df009

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* oSPARC - The SIMCORE frontend - https://osparc.io
3+
* Copyright: 2025 IT'IS Foundation - https://itis.swiss
4+
* License: MIT - https://opensource.org/licenses/MIT
5+
* Authors: Odei Maiz (odeimaiz)
6+
*/
7+
8+
qx.Class.define("osparc.filter.SearchingCollaborators", {
9+
extend: qx.ui.basic.Atom,
10+
include: osparc.filter.MFilterable,
11+
implement: osparc.filter.IFilterable,
12+
13+
construct: function() {
14+
this.base(arguments);
15+
16+
this.set({
17+
label: this.tr("Searching..."),
18+
icon: "@FontAwesome5Solid/circle-notch/14",
19+
appearance: "tagbutton",
20+
gap: 10,
21+
});
22+
23+
this.getChildControl("icon").getContentElement().addClass("rotate");
24+
this.getChildControl("label").setTextColor("text");
25+
},
26+
27+
members: {
28+
_filter: function() {
29+
this.exclude();
30+
},
31+
32+
_unfilter: function() {
33+
this.show();
34+
},
35+
36+
_shouldApplyFilter: function(data) {
37+
if (data.name) {
38+
return true;
39+
}
40+
return false;
41+
},
42+
43+
_shouldReactToFilter: function(data) {
44+
if (data.name) {
45+
return true;
46+
}
47+
return false;
48+
}
49+
}
50+
});

0 commit comments

Comments
 (0)