mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
fix typo
This commit is contained in:
parent
9119d18544
commit
47283658b5
2 changed files with 9 additions and 7 deletions
|
@ -99,13 +99,13 @@ class FilePage extends React.Component<Props> {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps: Props) {
|
componentDidUpdate(prevProps: Props) {
|
||||||
const { isSubscribed, claim, uri, fetchViewCount } = this.props;
|
const { isSubscribed, claim, uri, fetchViewCount, claimIsMine } = this.props;
|
||||||
|
|
||||||
if (!prevProps.isSubscribed && isSubscribed) {
|
if (!prevProps.isSubscribed && isSubscribed) {
|
||||||
this.removeFromSubscriptionNotifications();
|
this.removeFromSubscriptionNotifications();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prevProps.uri !== uri) {
|
if (prevProps.uri !== uri && claimIsMine) {
|
||||||
fetchViewCount(claim.claim_id);
|
fetchViewCount(claim.claim_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -213,9 +213,11 @@ class FilePage extends React.Component<Props> {
|
||||||
{__('Published on')} <DateTime block={height} show={DateTime.SHOW_DATE} />
|
{__('Published on')} <DateTime block={height} show={DateTime.SHOW_DATE} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{claimIsMine && (
|
||||||
<div className="media__subtext--large">
|
<div className="media__subtext--large">
|
||||||
{viewCount} {viewCount !== 1 ? __('Views') : __('View')}
|
{viewCount} {viewCount !== 1 ? __('Views') : __('View')}
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="media__actions media__actions--between">
|
<div className="media__actions media__actions--between">
|
||||||
|
|
|
@ -5980,9 +5980,9 @@ lbry-redux@lbryio/lbry-redux#f140db38dd73cead9e87549340fa9434da62ba8a:
|
||||||
reselect "^3.0.0"
|
reselect "^3.0.0"
|
||||||
uuid "^3.3.2"
|
uuid "^3.3.2"
|
||||||
|
|
||||||
lbryinc@lbryio/lbryinc#0f74a896e1b42b86e3143d79398ab27217901b01:
|
lbryinc@lbryio/lbryinc#351d0a08806b0f770b50066b61a806171f6424d4:
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/0f74a896e1b42b86e3143d79398ab27217901b01"
|
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/351d0a08806b0f770b50066b61a806171f6424d4"
|
||||||
dependencies:
|
dependencies:
|
||||||
bluebird "^3.5.1"
|
bluebird "^3.5.1"
|
||||||
reselect "^3.0.0"
|
reselect "^3.0.0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue