Skip to content

Commit 8b7053d

Browse files
committed
refactor
1 parent 5dd52be commit 8b7053d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
322322
__groupByChanged: function(groupBy) {
323323
this._resourcesContainer.setGroupBy(groupBy);
324324
this._reloadCards();
325-
if (this._resourceFilter) {
326-
this._resourceFilter.groupByChanged(groupBy);
325+
326+
const isTemplate = this._resourceType === "template";;
327+
if (this._resourceFilter && isTemplate) {
328+
this._resourceFilter.getChildControl("tags-layout").setVisibility(isTemplate && groupBy === "tags" ? "visible" : "excluded");
327329
}
328330
},
329331

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,6 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
448448
tagsLayout.getChildren().forEach(item => item.setPaddingLeft(10)); // align them with the context
449449
}
450450
},
451-
452-
groupByChanged: function(groupBy) {
453-
const isTemplate = this.__resourceType === "template";
454-
this.getChildControl("tags-layout").setVisibility(isTemplate && groupBy === "tags" ? "visible" : "excluded");
455-
},
456451
/* /TAGS */
457452

458453
/* SERVICE TYPE */

0 commit comments

Comments
 (0)