From eee257ae30a4c99406293b1d29aee2d104a64bde Mon Sep 17 00:00:00 2001 From: Michael Linares <116801315+Michaellinaresxk@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:04:48 +0100 Subject: [PATCH] BC-5119-Prevent create new neXboard (Front) (#3313) * Button Removed on topic edit . --- static/scripts/topicEdit.js | 15 +++------------ views/topic/edit-topic.hbs | 3 +-- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/static/scripts/topicEdit.js b/static/scripts/topicEdit.js index 1865c3b438..1a71490199 100644 --- a/static/scripts/topicEdit.js +++ b/static/scripts/topicEdit.js @@ -326,7 +326,6 @@ class TopicBlockList extends React.Component { * Render the list items. */ render() { - const neXboardEnabled = ($contentBlocksContainer.data('nexboardenabled') === true); const h5pEditorEnabled = ($contentBlocksContainer.data('h5peditorenabled') === true); return (
@@ -364,7 +363,7 @@ class TopicBlockList extends React.Component { onClick={this.addBlock.bind(this, TopicGeoGebra)}> {`+ ${$t('topic.topicEdit.button.geoGebraWorksheet')}`} - - {neXboardEnabled ? : '' } - : '' + : '' }
diff --git a/views/topic/edit-topic.hbs b/views/topic/edit-topic.hbs index 30360dbb38..de09bbca0e 100644 --- a/views/topic/edit-topic.hbs +++ b/views/topic/edit-topic.hbs @@ -44,10 +44,9 @@
-
+ data-iscoursegroup="{{courseGroupId}}" data-h5peditorenabled="{{#ifConfig "FEATURE_H5P_EDITOR_ENABLED" true}}true{{/ifConfig}}">
{{#ifneq 0 (arrayLength @root.lessonFilesStorageData.files)}}