Skip to content
Snippets Groups Projects
Commit ffee1a9f authored by Thomas Marstrander's avatar Thomas Marstrander
Browse files

JI-2271 Add flag determining whether content hub should be enabled

parent 3f2f4d91
Branches
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
// Required for assets
H5PEditor.baseUrl = '';
H5PEditor.enableContentHub = H5PIntegration.editor.enableContentHub;
if (H5PIntegration.editor.nodeVersionId !== undefined) {
H5PEditor.contentId = H5PIntegration.editor.nodeVersionId;
......
......@@ -29,7 +29,8 @@ ns.SelectorHub = function (libraries, selectedLibrary, changeLibraryDialog) {
contentTypes: libraries,
getAjaxUrl: H5PEditor.getAjaxUrl,
expanded: true,
canPaste: false
canPaste: false,
enableContentHub: H5PEditor.enableContentHub || false,
};
if (selectedLibrary) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment