mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Added colored text if a category is locked for submitting and changing category
This commit is contained in:
@@ -557,16 +557,17 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
||||
for (const category of categories) {
|
||||
elements.push(
|
||||
<option value={category}
|
||||
key={category}>
|
||||
{this.categoryVoteButtonLockIcon(category) + chrome.i18n.getMessage("category_" + category)}
|
||||
key={category}
|
||||
className={this.categoryLockedClass(category)}>
|
||||
{chrome.i18n.getMessage("category_" + category)}
|
||||
</option>
|
||||
);
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
||||
categoryVoteButtonLockIcon(category: Category): string {
|
||||
return (this.contentContainer().lockedCategories.includes(category)) ? "🔒" : " ";
|
||||
categoryLockedClass(category: string): string {
|
||||
return(this.props.contentContainer().lockedCategories.includes(category)) ? "SponsorBlockLockedColor" : ""
|
||||
}
|
||||
|
||||
unskip(index: number): void {
|
||||
|
||||
Reference in New Issue
Block a user