mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Hide unskip by default on poi segments
This commit is contained in:
@@ -303,17 +303,19 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSkipButton(): JSX.Element {
|
getSkipButton(): JSX.Element {
|
||||||
return (
|
if (this.segments.length > 1 || utils.getCategoryActionType(this.segments[0].category) !== CategoryActionType.POI) {
|
||||||
<span className="sponsorSkipNoticeUnskipSection">
|
return (
|
||||||
<button id={"sponsorSkipUnskipButton" + this.idSuffix}
|
<span className="sponsorSkipNoticeUnskipSection">
|
||||||
className="sponsorSkipObject sponsorSkipNoticeButton"
|
<button id={"sponsorSkipUnskipButton" + this.idSuffix}
|
||||||
style={{marginLeft: "4px"}}
|
className="sponsorSkipObject sponsorSkipNoticeButton"
|
||||||
onClick={() => this.prepAction(SkipNoticeAction.Unskip)}>
|
style={{marginLeft: "4px"}}
|
||||||
|
onClick={() => this.prepAction(SkipNoticeAction.Unskip)}>
|
||||||
|
|
||||||
{this.state.unskipText + (this.state.showKeybindHint ? " (" + Config.config.skipKeybind + ")" : "")}
|
{this.state.unskipText + (this.state.showKeybindHint ? " (" + Config.config.skipKeybind + ")" : "")}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getSubmissionChooser(): JSX.Element[] {
|
getSubmissionChooser(): JSX.Element[] {
|
||||||
|
|||||||
Reference in New Issue
Block a user