mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 08:51:24 +00:00
show lbry link on share dialog for channels
This commit is contained in:
parent
082ee187da
commit
3ca847ece3
2 changed files with 21 additions and 24 deletions
|
@ -195,7 +195,6 @@ const Header = (props: Props) => {
|
||||||
navigate={`/$/${PAGES.WALLET}`}
|
navigate={`/$/${PAGES.WALLET}`}
|
||||||
className="header__navigation-item menu__title header__navigation-item--balance"
|
className="header__navigation-item menu__title header__navigation-item--balance"
|
||||||
label={getWalletTitle()}
|
label={getWalletTitle()}
|
||||||
disabled
|
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
onDoubleClick={e => {
|
onDoubleClick={e => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
|
@ -132,29 +132,27 @@ function SocialShare(props: Props) {
|
||||||
href={`https://facebook.com/sharer/sharer.php?u=${encodedLbryURL}`}
|
href={`https://facebook.com/sharer/sharer.php?u=${encodedLbryURL}`}
|
||||||
/>
|
/>
|
||||||
{webShareable && !isChannel && (
|
{webShareable && !isChannel && (
|
||||||
<React.Fragment>
|
<Button
|
||||||
<Button
|
className="share"
|
||||||
className="share"
|
iconSize={24}
|
||||||
iconSize={24}
|
icon={ICONS.EMBED}
|
||||||
icon={ICONS.EMBED}
|
title={__('Embed this content')}
|
||||||
title={__('Embed this content')}
|
onClick={() => {
|
||||||
onClick={() => {
|
setShowEmbed(!showEmbed);
|
||||||
setShowEmbed(!showEmbed);
|
setShowClaimLinks(false);
|
||||||
setShowClaimLinks(false);
|
}}
|
||||||
}}
|
/>
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
className="share"
|
|
||||||
iconSize={24}
|
|
||||||
icon={ICONS.SHARE_LINK}
|
|
||||||
title={__('Links')}
|
|
||||||
onClick={() => {
|
|
||||||
setShowClaimLinks(!showClaimLinks);
|
|
||||||
setShowEmbed(false);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</React.Fragment>
|
|
||||||
)}
|
)}
|
||||||
|
<Button
|
||||||
|
className="share"
|
||||||
|
iconSize={24}
|
||||||
|
icon={ICONS.SHARE_LINK}
|
||||||
|
title={__('Links')}
|
||||||
|
onClick={() => {
|
||||||
|
setShowClaimLinks(!showClaimLinks);
|
||||||
|
setShowEmbed(false);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{SUPPORTS_SHARE_API && isMobile && (
|
{SUPPORTS_SHARE_API && isMobile && (
|
||||||
|
@ -173,7 +171,7 @@ function SocialShare(props: Props) {
|
||||||
{showClaimLinks && (
|
{showClaimLinks && (
|
||||||
<div className="section">
|
<div className="section">
|
||||||
<CopyableText label={__('LBRY URL')} copyable={`lbry://${lbryUrl}`} />
|
<CopyableText label={__('LBRY URL')} copyable={`lbry://${lbryUrl}`} />
|
||||||
<CopyableText label={__('Download Link')} copyable={downloadUrl} />
|
{!isChannel && <CopyableText label={__('Download Link')} copyable={downloadUrl} />}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|
Loading…
Add table
Reference in a new issue