Skip to content

Commit f507a24

Browse files
committed
comment
1 parent 692e6e0 commit f507a24

File tree

1 file changed

+7
-4
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,17 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
194194
},
195195

196196
__addHypertools: function() {
197+
const hypertoolsMenuButton = this.self().createMenuButton(null, this.tr("Hypertools"));
198+
// OM review
199+
// hypertoolsMenuButton.exclude();
200+
this.addAt(hypertoolsMenuButton, this.__itemIdx);
201+
this.__itemIdx++;
202+
197203
osparc.store.Templates.getHypertools()
198204
.then(hypertools => {
205+
hypertoolTypeButton.setVisibility(hypertools.length > 0 ? "visible" : "excluded");
199206
// add entry for hypertools if there are any
200207
if (hypertools.length) {
201-
const hypertoolsMenuButton = this.self().createMenuButton(null, this.tr("Hypertools"));
202-
this.addAt(hypertoolsMenuButton, this.__itemIdx);
203-
this.__itemIdx++;
204-
205208
const hypertoolsMenu = new qx.ui.menu.Menu().set({
206209
appearance: "menu-wider",
207210
});

0 commit comments

Comments
 (0)