mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
fix loading text not displaying upon voting
This commit is contained in:
parent
a457a8009e
commit
d82ef63d89
1 changed files with 2 additions and 5 deletions
|
@ -502,20 +502,17 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
||||||
}
|
}
|
||||||
|
|
||||||
SkipNoticeActionUpvote(index: number): void {
|
SkipNoticeActionUpvote(index: number): void {
|
||||||
this.contentContainer().vote(1, this.segments[index].UUID, undefined, this);
|
|
||||||
if (this.segments.length === 1) this.resetStateToStart();
|
if (this.segments.length === 1) this.resetStateToStart();
|
||||||
|
this.contentContainer().vote(1, this.segments[index].UUID, undefined, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
SkipNoticeActionDownvote(index: number): void {
|
SkipNoticeActionDownvote(index: number): void {
|
||||||
this.contentContainer().vote(0, this.segments[index].UUID, undefined, this);
|
|
||||||
|
|
||||||
if (this.segments.length === 1) this.resetStateToStart();
|
if (this.segments.length === 1) this.resetStateToStart();
|
||||||
|
this.contentContainer().vote(0, this.segments[index].UUID, undefined, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
SkipNoticeActionCategoryVote(index: number): void {
|
SkipNoticeActionCategoryVote(index: number): void {
|
||||||
this.contentContainer().vote(undefined, this.segments[index].UUID, this.categoryOptionRef.current.value as Category, this)
|
this.contentContainer().vote(undefined, this.segments[index].UUID, this.categoryOptionRef.current.value as Category, this)
|
||||||
|
|
||||||
//this.resetStateToStart();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
skipNoticeActionCopyDownvote(index: number): void {
|
skipNoticeActionCopyDownvote(index: number): void {
|
||||||
|
|
Loading…
Reference in a new issue