mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Don't display remove file icon in some cases
This commit is contained in:
@@ -241,16 +241,6 @@ async function uploadRandomVideoOnServers (
|
||||
return res
|
||||
}
|
||||
|
||||
function getAllFiles (video: VideoDetails) {
|
||||
const files = video.files
|
||||
|
||||
if (video.streamingPlaylists[0]) {
|
||||
return files.concat(video.streamingPlaylists[0].files)
|
||||
}
|
||||
|
||||
return files
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
@@ -258,6 +248,5 @@ export {
|
||||
checkUploadVideoParam,
|
||||
uploadRandomVideoOnServers,
|
||||
checkVideoFilesWereRemoved,
|
||||
saveVideoInServers,
|
||||
getAllFiles
|
||||
saveVideoInServers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user