From 2120c4460fcef0c60ff0676c0667a7be53338af8 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 9 Dec 2019 15:58:27 +0100 Subject: [PATCH] Update GoogleTranslateOption.plugin.js --- Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js index 218e34b2ba..828a80e30f 100644 --- a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js +++ b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js @@ -291,7 +291,7 @@ class GoogleTranslateOption { this.translating = !this.translating; let channelTextareaButtonIns = BDFDB.ReactUtils.findOwner(instance, {name:"BDFDB_ChannelTextAreaButton"}); if (channelTextareaButtonIns) { - channelTextareaButtonIns.props.className = BDFDB.DOMUtils.formatClassName(BDFDB.disCN.BDFDB.dotCN._googletranslateoptiontranslatebutton, this.translating && BDFDB.disCN.BDFDB.dotCN._googletranslateoptiontranslating, BDFDB.disCN.textareapickerbutton); + channelTextareaButtonIns.props.className = BDFDB.DOMUtils.formatClassName(BDFDB.disCN._googletranslateoptiontranslatebutton, this.translating && BDFDB.disCN._googletranslateoptiontranslating, BDFDB.disCN.textareapickerbutton); BDFDB.ReactUtils.forceUpdate(channelTextareaButtonIns); instance.close(); } @@ -321,7 +321,7 @@ class GoogleTranslateOption { onChange: value => { this.translating = value; if (channelTextareaButtonIns) { - channelTextareaButtonIns.props.className = BDFDB.DOMUtils.formatClassName(BDFDB.disCN.BDFDB.dotCN._googletranslateoptiontranslatebutton, this.translating && BDFDB.disCN.BDFDB.dotCN._googletranslateoptiontranslating, BDFDB.disCN.textareapickerbutton); + channelTextareaButtonIns.props.className = BDFDB.DOMUtils.formatClassName(BDFDB.disCN._googletranslateoptiontranslatebutton, this.translating && BDFDB.disCN._googletranslateoptiontranslating, BDFDB.disCN.textareapickerbutton); BDFDB.ReactUtils.forceUpdate(channelTextareaButtonIns); } }