Skip to content

Commit

Permalink
uri disconnected nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-er committed Jul 2, 2024
1 parent db7c4d2 commit 419f804
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/js/backbone-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -3026,6 +3026,9 @@ var PathsByURIQueryView = Backbone.View.extend({
"query-pathsbyURI-URI"
).value;
var uri = self.currentQueryParameters.URI.trim();
var removeDisconnected = document.getElementById(
"query-pathsbyURI-checkbox"
).checked;

if (uri.length === 0) {
document.getElementById("query-pathsbyURI-URI").focus();
Expand Down Expand Up @@ -3081,7 +3084,8 @@ var PathsByURIQueryView = Backbone.View.extend({
);
currentGeneralProperties.inferNestingOnLoad =
currentInferNestingOnLoad;
appUtilities.removeDisconnectedNodesAfterQuery([]);
if(removeDisconnected)
appUtilities.removeDisconnectedNodesAfterQuery([]);
$(document).trigger("sbgnvizLoadFileEnd", [filename, cy]);
} else {
new PromptEmptyQueryResultView({
Expand Down
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3800,9 +3800,17 @@ <h4 class="modal-title">Paths By URI</h4>
</tr>

<tr>
<td>Enter URI of a pathway</td>
<td class="caption-style-text">Enter URI of a pathway</td>
<td style="padding: 10px;"><input id="query-pathsbyURI-URI" type="text" style="width: 300px;" value= <%= URI %> > </td>
</tr>
<tr>
<td colspan=2>
<div style="display: flex; flex-direction: row; column-gap: 5px;">
<div class="caption-style-text">Remove Disconnected Nodes:</div>
<input id="query-pathsbyURI-checkbox" type="checkbox" class="layout-text" style="margin: 0 0;" checked>
</div>
</td>
</tr>
</tbody>
</table>
</div>
Expand Down

0 comments on commit 419f804

Please sign in to comment.