mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
Update helper.js
Changed download button to a tag so that it's possible to right click and copy link.
This commit is contained in:
parent
1711530dda
commit
f2b7b3a83a
1 changed files with 2 additions and 5 deletions
|
@ -27,11 +27,8 @@ function renderClientList(data) {
|
||||||
<img src="${obj.QRCode}" />
|
<img src="${obj.QRCode}" />
|
||||||
<div class="info-box-content">
|
<div class="info-box-content">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button onclick="location.href='/download?clientid=${obj.Client.id}'" type="button"
|
<a href="/download?clientid=${obj.Client.id}"
|
||||||
class="btn btn-outline-success btn-sm">Download</button>
|
class="btn btn-outline-success btn-sm">Download</a>
|
||||||
<button type="button" class="btn btn-outline-warning btn-sm" data-toggle="modal"
|
|
||||||
data-target="#modal_email_client" data-clientid="${obj.Client.id}"
|
|
||||||
data-clientname="${obj.Client.name}">Email</button>
|
|
||||||
<button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal"
|
<button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal"
|
||||||
data-target="#modal_edit_client" data-clientid="${obj.Client.id}"
|
data-target="#modal_edit_client" data-clientid="${obj.Client.id}"
|
||||||
data-clientname="${obj.Client.name}">Edit</button>
|
data-clientname="${obj.Client.name}">Edit</button>
|
||||||
|
|
Loading…
Add table
Reference in a new issue