Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #90 from leaphy-robotics/53-categorieen-sensor-en-…
Browse files Browse the repository at this point in the history
…actuator-in-original-en-uno-omgeving-alle-omgevingen-behalve-flitz

53 categorieen sensor en actuator in original en uno omgeving alle omgevingen behalve flitz
  • Loading branch information
JeftadeGraaf authored Nov 21, 2023
2 parents d162b40 + 93639e0 commit d729951
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 218 deletions.
4 changes: 2 additions & 2 deletions src/app/effects/blockly-editor.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ export class BlocklyEditorEffects {
const toolboxElement = toolboxXmlDoc.getElementById('easyBloqsToolbox');
const leaphyCategories = parser.parseFromString(leaphyToolboxXml, 'text/xml');
const leaphyRobotCategory = leaphyCategories.getElementById(robotType.id);
toolboxElement.prepend(leaphyRobotCategory);
if (robotType.showLeaphyExtra) {
const leaphyExtraCategory = leaphyCategories.getElementById(`${robotType.id}_extra`);
toolboxElement.appendChild(leaphyExtraCategory);
toolboxElement.prepend(leaphyExtraCategory);
}
toolboxElement.prepend(leaphyRobotCategory);
const serializer = new XMLSerializer();
const toolboxXmlString = serializer.serializeToString(toolboxXmlDoc);
config.toolbox = toolboxXmlString;
Expand Down
Loading

0 comments on commit d729951

Please sign in to comment.