Skip to content

Commit 70d309a

Browse files
committed
Do not show the thumbnail explorer if there are no thumbnails
1 parent c14f48f commit 70d309a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ qx.Class.define("osparc.dashboard.StudyThumbnailExplorer", {
104104
minHeight: this.self().THUMBNAIL_SLIDER_HEIGHT,
105105
maxHeight: this.self().THUMBNAIL_SLIDER_HEIGHT
106106
});
107-
108107
return thumbnailSuggestions;
109108
},
110109

@@ -184,6 +183,9 @@ qx.Class.define("osparc.dashboard.StudyThumbnailExplorer", {
184183
*/
185184

186185
const thumbnailSuggestions = this.getChildControl("thumbnail-suggestions");
186+
// make it visible only if there are thumbnails
187+
this.exclude();
188+
thumbnailSuggestions.addListener("thumbnailAdded", () => this.show());
187189
if (this.__showWorkbenchUIPreview()) {
188190
thumbnailSuggestions.addWorkbenchUIPreviewToSuggestions();
189191
}

0 commit comments

Comments
 (0)