Update DisplayLargeMessages.plugin.js
This commit is contained in:
parent
4c43e5d02b
commit
785b6b4204
|
@ -219,7 +219,8 @@ var DisplayLargeMessages = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
processAttachment (e) {
|
processAttachment (e) {
|
||||||
if (e.instance.props.filename == "message.txt" && settings.onDemand || amounts.maxFileSize && (amounts.maxFileSize < e.instance.props.size/1024)) e.returnvalue.props.children.splice(2, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
if (e.instance.props.filename == "message.txt" && (settings.onDemand || amounts.maxFileSize && (amounts.maxFileSize < e.instance.props.size/1024))) {
|
||||||
|
e.returnvalue.props.children.splice(2, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||||
text: this.labels.button_injectattchment_text,
|
text: this.labels.button_injectattchment_text,
|
||||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {
|
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {
|
||||||
rel: "noreferrer noopener",
|
rel: "noreferrer noopener",
|
||||||
|
@ -250,6 +251,7 @@ var DisplayLargeMessages = (_ => {
|
||||||
})
|
})
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
forceUpdateAll () {
|
forceUpdateAll () {
|
||||||
settings = BDFDB.DataUtils.get(this, "settings");
|
settings = BDFDB.DataUtils.get(this, "settings");
|
||||||
|
|
Loading…
Reference in New Issue