Hide 'download' for livestreams

6517
This commit is contained in:
infinite-persistence 2021-07-18 23:10:34 +08:00
parent 5120db3f53
commit 1fa7533ee3
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -162,6 +162,7 @@ function FileActions(props: Props) {
onClick={() => openModal(MODALS.CONFIRM_FILE_REMOVE, { uri })}
/>
)}
{(!isLivestreamClaim || !claimIsMine) && (
<Menu>
<MenuButton
className="button--file-action"
@ -174,12 +175,14 @@ function FileActions(props: Props) {
</MenuButton>
<MenuList className="menu__list">
{/* @if TARGET='web' */}
{!isLivestreamClaim && (
<MenuItem className="comment__menu-option" onSelect={handleWebDownload}>
<div className="menu__link">
<Icon aria-hidden icon={ICONS.DOWNLOAD} />
{__('Download')}
</div>
</MenuItem>
)}
{/* @endif */}
{!claimIsMine && (
<MenuItem
@ -194,6 +197,7 @@ function FileActions(props: Props) {
)}
</MenuList>
</Menu>
)}
</>
);