Show full domain to users

master
Keith Irwin 2022-11-07 12:28:29 -07:00
parent 2d9e9997e0
commit 6bf72f21be
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<th>Host</th><th>SSL</th><th></th>
</tr></thead>
<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><button style="float:right" data-bind="click:$parent.delPeer,disable:$data.isDeleting,text:deleteText">Delete</button></td>
</tr></tbody>

View File

@ -1,7 +1,8 @@
const API_URL = 'https://wgapi-test-dashboard-backend.ksn.gf4'
function Peer(data) {
this.name = data.domain
this.domain = data.domain
this.name = data.domain.split('.')[0]
this.pubkey = data.pubkey
this.ipv4 = data.ipv4
this.ipv6 = data.ipv6