Update ReadAllNotificationsButton.plugin.js

This commit is contained in:
Mirco Wittrien 2020-05-08 10:42:43 +02:00
parent 2b63d1349b
commit b8a43942d4
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ var ReadAllNotificationsButton = (_ => {
processRecentsHeader (e) {
let settings = BDFDB.DataUtils.get(this, "settings");
if (settings.addClearButton) e.returnvalue.props.children.push(BDFDB.ReactUtils.createElement("div", {
if (settings.addClearButton && e.instance.props.tab == "Recent Mentions") e.returnvalue.props.children.push(BDFDB.ReactUtils.createElement("div", {
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: `${BDFDB.LanguageUtils.LanguageStrings.CLOSE} (${BDFDB.LanguageUtils.LanguageStrings.FORM_LABEL_ALL})`,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {