mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-29 05:40:52 +03:00
Don't show never show when already hidden
This commit is contained in:
@@ -121,9 +121,9 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
|||||||
countdownTime: Config.config.skipNoticeDuration,
|
countdownTime: Config.config.skipNoticeDuration,
|
||||||
countdownText: null,
|
countdownText: null,
|
||||||
|
|
||||||
skipButtonText: this.props.startReskip
|
skipButtonText: this.props.startReskip
|
||||||
? this.getReskipText() : this.getUnskipText(),
|
? this.getReskipText() : this.getUnskipText(),
|
||||||
skipButtonCallback: this.props.startReskip
|
skipButtonCallback: this.props.startReskip
|
||||||
? (index) => this.reskip(index) : (index) => this.unskip(index),
|
? (index) => this.reskip(index) : (index) => this.unskip(index),
|
||||||
showSkipButton: true,
|
showSkipButton: true,
|
||||||
|
|
||||||
@@ -252,8 +252,8 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
|||||||
{/* Unskip/Skip Button */}
|
{/* Unskip/Skip Button */}
|
||||||
{!this.props.smaller ? this.getSkipButton() : null}
|
{!this.props.smaller ? this.getSkipButton() : null}
|
||||||
|
|
||||||
{/* Never show button if autoSkip is enabled */}
|
{/* Never show button */}
|
||||||
{!this.autoSkip ? "" :
|
{!this.autoSkip || this.props.startReskip ? "" :
|
||||||
<td className="sponsorSkipNoticeRightSection"
|
<td className="sponsorSkipNoticeRightSection"
|
||||||
key={1}>
|
key={1}>
|
||||||
<button className="sponsorSkipObject sponsorSkipNoticeButton sponsorSkipNoticeRightButton"
|
<button className="sponsorSkipObject sponsorSkipNoticeButton sponsorSkipNoticeRightButton"
|
||||||
|
|||||||
Reference in New Issue
Block a user