Skip to content

Commit

Permalink
Update server.html
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro authored Feb 10, 2024
1 parent 488a0ee commit bf90b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ <h1 id="name">Name</h1>
}
PT('servers/'+params.get('id')+'/files/list', function(f){
f = f.data;
document.getElementById('disk').innerHTML = f.map(o => {
document.getElementById('files').innerHTML = f.map(o => {
o = o.attributes;
return JSON.stringify(o)
return `<label>${o.is_file} ${o.name} - ${formatBytes(o.size)}</label>`
}).join('')
})
</script>
Expand Down

0 comments on commit bf90b92

Please sign in to comment.