Fix FileBin file links over p2p
parent
e8a11b7b12
commit
39d99d0c95
|
@ -75,6 +75,7 @@ $(document).ready(function(e){
|
|||
}
|
||||
],
|
||||
data: data.files.map((file) => {
|
||||
var href = getApiPrefix('fileBin') + '/' + selectedMonitor + '/' + file.name
|
||||
return {
|
||||
monitorName: `<b>${loadedMonitors[file.mid]?.name || file.mid}</b>`,
|
||||
name: file.name,
|
||||
|
@ -85,8 +86,8 @@ $(document).ready(function(e){
|
|||
`,
|
||||
size: convertKbToHumanSize(file.size),
|
||||
buttons: `
|
||||
<a class="btn btn-sm btn-primary" href="${file.href}" download title="${lang.Download}"><i class="fa fa-download"></i></a>
|
||||
${file.details.video ? `<a class="btn btn-sm btn-primary preview-video" href="${file.href}" title="${lang.Play}"><i class="fa fa-play"></i></a>` : ``}
|
||||
<a class="btn btn-sm btn-primary" href="${href}" download title="${lang.Download}"><i class="fa fa-download"></i></a>
|
||||
${file.details.video ? `<a class="btn btn-sm btn-primary preview-video" href="${href}" title="${lang.Play}"><i class="fa fa-play"></i></a>` : ``}
|
||||
`,
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue