Skip to content

Commit

Permalink
Missed some references to GraphConfig, replaced with EagleConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Jul 4, 2024
1 parent 8234a71 commit f6b031c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/comment_node.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div class="body" data-bind="eagleRightClick: {data:$data,type:'rightClick_graphNode'}, event: {mousedown: function(object,event){GraphRenderer.startDrag(object,event);}, mouseup: function(){GraphRenderer.endDrag($data);}}, mousedownBubble: false, mouseupBubble: false">
<span data-bind="class: $data.getIcon(), style:{'color':$data.color}"></span>
<div class="connectingPort port" data-bind="style:{'background-color':GraphConfig.getColor('nodeUtilPort')},graphRendererPortPosition:{n:$data,f:null,type:'comment'}"></div>
<div class="connectingPort port" data-bind="style:{'background-color':EagleConfig.getColor('nodeUtilPort')},graphRendererPortPosition:{n:$data,f:null,type:'comment'}"></div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions templates/construct_node.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- ko if: $data.isConstruct() && Setting.findValue(Setting.ALLOW_GRAPH_EDITING) -->
<!-- ko ifnot: $data.hasInputApplication() -->
<!-- triggerHandler('context menu') is a way to trigger right click, we want both left and right click to trigger the right click menu to add embedded apps -->
<div class="inputSocket socket" onmousedown="GraphRenderer.preventBubbling()" data-bind="click:function(){$(event.target).triggerHandler('contextmenu')},eagleTooltip:'Click to add an input application', eagleRightClick: {data:$data,type:'addEmbeddedInputApp'},style:{'border-color':GraphConfig.getColor('nodeInputPort')}">
<div class="inputSocket socket" onmousedown="GraphRenderer.preventBubbling()" data-bind="click:function(){$(event.target).triggerHandler('contextmenu')},eagleTooltip:'Click to add an input application', eagleRightClick: {data:$data,type:'addEmbeddedInputApp'},style:{'border-color':EagleConfig.getColor('nodeInputPort')}">
<div>
<i class="material-icons md-18">add</i>
</div>
Expand All @@ -24,7 +24,7 @@

<!-- ko if: $data.isConstruct() && Setting.findValue(Setting.ALLOW_GRAPH_EDITING) -->
<!-- ko ifnot: $data.hasOutputApplication() -->
<div class="outputSocket socket" onmousedown="GraphRenderer.preventBubbling()" data-bind="click:function(){$(event.target).triggerHandler('contextmenu')},eagleTooltip:'Click to add an output application', eagleRightClick: {data:$data,type:'addEmbeddedOutputApp'},style:{'border-color':GraphConfig.getColor('nodeOutputPort')}">
<div class="outputSocket socket" onmousedown="GraphRenderer.preventBubbling()" data-bind="click:function(){$(event.target).triggerHandler('contextmenu')},eagleTooltip:'Click to add an output application', eagleRightClick: {data:$data,type:'addEmbeddedOutputApp'},style:{'border-color':EagleConfig.getColor('nodeOutputPort')}">
<div>
<i class="material-icons md-18">add</i>
</div>
Expand Down

0 comments on commit f6b031c

Please sign in to comment.