Skip to content

Commit 2566e47

Browse files
committed
getManualButtons
1 parent b8c461e commit 2566e47

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

services/static-webserver/client/source/class/osparc/store/Support.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,20 @@ qx.Class.define("osparc.store.Support", {
153153
}
154154
},
155155

156+
getManualButtons: function() {
157+
const manuals = osparc.store.Support.getManuals();
158+
const manualButtons = [];
159+
manuals.forEach(manual => {
160+
const manualBtn = new qx.ui.form.Button(manual.label, "@FontAwesome5Solid/book/14");
161+
manualBtn.getChildControl("label").set({
162+
rich: true
163+
});
164+
manualBtn.addListener("execute", () => window.open(manual.url), this);
165+
manualButtons.push(manualBtn);
166+
});
167+
return manualButtons;
168+
},
169+
156170
addSupportButtonsToMenu: function(menu) {
157171
const issues = osparc.store.VendorInfo.getIssues();
158172
const supports = osparc.store.VendorInfo.getSupports();

services/static-webserver/client/source/class/osparc/support/HomePage.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ qx.Class.define("osparc.support.HomePage", {
5959

6060
const guidedToursButton = osparc.store.Support.getGuidedToursButton();
6161
this._add(guidedToursButton);
62+
63+
const manualButtons = osparc.store.Support.getManualButtons();
64+
if (manualButtons) {
65+
manualButtons.forEach(manualButton => {
66+
this._add(manualButton);
67+
});
68+
}
6269
},
6370
}
6471
});

0 commit comments

Comments
 (0)