Fixed hopefully

master
Keith Irwin 2022-11-01 19:40:11 -06:00
parent 2d58cd5c16
commit 1a1f8bb00e
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 3 additions and 2 deletions

View File

@ -193,9 +193,10 @@ function PeerList() {
self.delUser = async () => {
user = await self.users().find((u)=>u.name===self.userToDelete())
if (confirm(`Are you sure you want to delete ${user.name}?`)) {
console.log(user)
if (confirm(`Are you sure you want to delete ${user.name()}?`)) {
user.isDeleting(true)
const url = `${API_URL}/user?t=${self.token()}&u=${user.name}`
const url = `${API_URL}/user?t=${self.token()}&u=${user.name()}`
console.log(url)
// try {
// const res = await fetch(url, {method: 'DELETE'})