diff --git a/src/co/bookmarks/item/contextmenu.js b/src/co/bookmarks/item/contextmenu.js index ec841486..310bd1e1 100644 --- a/src/co/bookmarks/item/contextmenu.js +++ b/src/co/bookmarks/item/contextmenu.js @@ -1,10 +1,11 @@ import React from 'react' import t from '~t' +import { API_ENDPOINT_URL } from '~data/constants/app' import Popover, { Menu, MenuItem, MenuSeparator } from '~co/overlay/popover' import { target } from '~target' export default function BookmarksItemContextmenu({ - _id, link, important, access, reparse, cache, + _id, link, important, access, reparse, cache, fileType, onContextMenuClose, onRemoveClick, onCopyLinkClick, onSelectClick, onImportantClick, onReparseClick }) { @@ -33,6 +34,12 @@ export default function BookmarksItemContextmenu({ ) : null} + {fileType ? ( + + {t.s('download')} + + ) : null} + {access && access.level >= 3 ? ( <> diff --git a/src/data/modules/api.js b/src/data/modules/api.js index f07ae3e2..e98549d4 100755 --- a/src/data/modules/api.js +++ b/src/data/modules/api.js @@ -110,7 +110,6 @@ function* req(url, options={}, retries=0) { let errorMessage = 'failed to load' for(let i = 0; i <= retries; i++){ - console.log(i, retries) try{ const winner = yield race({ req: call(fetchWrap, finalURL, {...defaultOptions, ...options}),