[wip] range requests
This commit is contained in:
parent
30c26b6cdd
commit
9d71be9b1b
3 changed files with 5 additions and 3 deletions
|
@ -55,7 +55,7 @@ export function doFileGet(uri: string, saveFile: boolean = true) {
|
|||
|
||||
dispatch(
|
||||
doToast({
|
||||
message: `Failed to download ${uri}, please try again. If this problem persists, visit https://lbry.com/faq/support for support.`,
|
||||
message: `Failed to view ${uri}, please try again. If this problem persists, visit https://lbry.com/faq/support for support.`,
|
||||
isError: true,
|
||||
})
|
||||
);
|
||||
|
|
|
@ -91,13 +91,15 @@ reducers[ACTIONS.DOWNLOADING_PROGRESSED] = (state, action) => {
|
|||
};
|
||||
|
||||
reducers[ACTIONS.DOWNLOADING_CANCELED] = (state, action) => {
|
||||
const { outpoint } = action.data;
|
||||
const { uri, outpoint } = action.data;
|
||||
|
||||
const newDownloading = Object.assign({}, state.downloadingByOutpoint);
|
||||
delete newDownloading[outpoint];
|
||||
delete newLoading[uri];
|
||||
|
||||
return Object.assign({}, state, {
|
||||
downloadingByOutpoint: newDownloading,
|
||||
urisLoading: newLoading,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ export const selectFileInfosDownloaded = createSelector(
|
|||
return (
|
||||
fileInfo &&
|
||||
myClaimIds.indexOf(fileInfo.claim_id) === -1 &&
|
||||
(fileInfo.completed || fileInfo.written_bytes)
|
||||
(fileInfo.completed || fileInfo.written_bytes > 0 || fileInfo.blobs_completed > 0 )
|
||||
);
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue