Skip to content

Commit

Permalink
feat: link directly to deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
praetoriansentry committed May 7, 2024
1 parent 5e5f317 commit 894c89c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/bridge-infra/simple-ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,12 @@ function renderDeposits(defaultBridgeService, bridgeAddress, deposits) {
df.appendChild(txtDiv);

let h2 = document.createElement("h2");
h2.innerText = "Deposit: " + dep.deposit_cnt;
let url = `${defaultBridgeService}/bridge?deposit_cnt=${dep.deposit_cnt}&net_id=${dep.network_id}`;
let a = document.createElement("a");
a.href = url;
a.target = "_blank";
a.innerText = "Deposit: " + dep.deposit_cnt;
h2.appendChild(a);
df.appendChild(h2);

let dl = document.createElement("dl");
Expand Down

0 comments on commit 894c89c

Please sign in to comment.