mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Limit chapter in UI to those who can submit
This commit is contained in:
@@ -406,6 +406,8 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
|
||||
)];
|
||||
|
||||
for (const category of (this.props.categoryList ?? CompileConfig.categoryList)) {
|
||||
if (category === "chapter" && !Config.config.canSubmitChapter) break;
|
||||
|
||||
elements.push(
|
||||
<option value={category}
|
||||
key={category}
|
||||
|
||||
Reference in New Issue
Block a user