Skip to content

Commit

Permalink
Retain the full URL when selecting a connect alias
Browse files Browse the repository at this point in the history
Resolves #340
  • Loading branch information
martinhpedersen committed May 1, 2024
1 parent 823b991 commit 6dfb14e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,14 @@ function setConnectValues(url) {
refreshExtraInputGroups();
onConnectInputChange();
onConnectFreqChange();
setConnectURL(url);
}

function getConnectURL() {
function getConnectURL() { return $('#connectURLPreview').text(); }

function setConnectURL(url) { $('#connectURLPreview').text(url); }

function buildConnectURL() {
let url =
$('#transportSelect').val() + '://' + $('#addrInput').val() + '/' + $('#targetInput').val();

Expand Down Expand Up @@ -678,7 +683,7 @@ function onConnectBandwidthChange() {
}

function onConnectInputChange() {
$('#connectURLPreview').empty().append(getConnectURL());
setConnectURL(buildConnectURL());
}

function refreshExtraInputGroups() {
Expand Down

0 comments on commit 6dfb14e

Please sign in to comment.