Show full domain to users
parent
2d9e9997e0
commit
6bf72f21be
|
@ -12,7 +12,7 @@
|
||||||
<th>Host</th><th>SSL</th><th></th>
|
<th>Host</th><th>SSL</th><th></th>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody data-bind="foreach:peers"><tr>
|
<tbody data-bind="foreach:peers"><tr>
|
||||||
<td data-bind="text:name"></td>
|
<td data-bind="text:domain"></td>
|
||||||
<td><a data-bind="attr:{href:crtHref}">cert</a> / <a data-bind="attr:{href:keyHref}">key</a></td>
|
<td><a data-bind="attr:{href:crtHref}">cert</a> / <a data-bind="attr:{href:keyHref}">key</a></td>
|
||||||
<td><button style="float:right" data-bind="click:$parent.delPeer,disable:$data.isDeleting,text:deleteText">Delete</button></td>
|
<td><button style="float:right" data-bind="click:$parent.delPeer,disable:$data.isDeleting,text:deleteText">Delete</button></td>
|
||||||
</tr></tbody>
|
</tr></tbody>
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
const API_URL = 'https://wgapi-test-dashboard-backend.ksn.gf4'
|
const API_URL = 'https://wgapi-test-dashboard-backend.ksn.gf4'
|
||||||
|
|
||||||
function Peer(data) {
|
function Peer(data) {
|
||||||
this.name = data.domain
|
this.domain = data.domain
|
||||||
|
this.name = data.domain.split('.')[0]
|
||||||
this.pubkey = data.pubkey
|
this.pubkey = data.pubkey
|
||||||
this.ipv4 = data.ipv4
|
this.ipv4 = data.ipv4
|
||||||
this.ipv6 = data.ipv6
|
this.ipv6 = data.ipv6
|
||||||
|
|
Loading…
Reference in New Issue