Update ReadAllNotificationsButton.plugin.js

This commit is contained in:
Mirco Wittrien 2022-09-28 16:41:42 +02:00
parent e2c47dc6be
commit 0703c5ecc9
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ module.exports = (_ => {
}
processRecentsHeader (e) {
if (this.settings.general.addClearButton && mentionedMessages && mentionedMessages.length && e.instance.props.tab == BDFDB.LibraryModules.InboxUtils.InboxTab.MENTIONS) e.returnvalue.props.children = [
if (this.settings.general.addClearButton && mentionedMessages && mentionedMessages.length && e.instance.props.tab == BDFDB.DiscordConstants.InboxTabs.MENTIONS) e.returnvalue.props.children = [
e.returnvalue.props.children,
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: `${BDFDB.LanguageUtils.LanguageStrings.CLOSE} (${BDFDB.LanguageUtils.LanguageStrings.FORM_LABEL_ALL})`,