Hide 'download' for livestreams
6517
This commit is contained in:
parent
5120db3f53
commit
1fa7533ee3
1 changed files with 36 additions and 32 deletions
|
@ -162,6 +162,7 @@ function FileActions(props: Props) {
|
||||||
onClick={() => openModal(MODALS.CONFIRM_FILE_REMOVE, { uri })}
|
onClick={() => openModal(MODALS.CONFIRM_FILE_REMOVE, { uri })}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{(!isLivestreamClaim || !claimIsMine) && (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuButton
|
<MenuButton
|
||||||
className="button--file-action"
|
className="button--file-action"
|
||||||
|
@ -174,12 +175,14 @@ function FileActions(props: Props) {
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<MenuList className="menu__list">
|
<MenuList className="menu__list">
|
||||||
{/* @if TARGET='web' */}
|
{/* @if TARGET='web' */}
|
||||||
|
{!isLivestreamClaim && (
|
||||||
<MenuItem className="comment__menu-option" onSelect={handleWebDownload}>
|
<MenuItem className="comment__menu-option" onSelect={handleWebDownload}>
|
||||||
<div className="menu__link">
|
<div className="menu__link">
|
||||||
<Icon aria-hidden icon={ICONS.DOWNLOAD} />
|
<Icon aria-hidden icon={ICONS.DOWNLOAD} />
|
||||||
{__('Download')}
|
{__('Download')}
|
||||||
</div>
|
</div>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
)}
|
||||||
{/* @endif */}
|
{/* @endif */}
|
||||||
{!claimIsMine && (
|
{!claimIsMine && (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
@ -194,6 +197,7 @@ function FileActions(props: Props) {
|
||||||
)}
|
)}
|
||||||
</MenuList>
|
</MenuList>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue