This commit is contained in:
Mirco Wittrien 2020-02-05 12:22:49 +01:00
parent 59a115e0e8
commit 9585e3e45d
3 changed files with 12 additions and 2 deletions

View File

@ -4784,6 +4784,7 @@
DiscordClassModules.SettingsWindow = BDFDB.ModuleUtils.findByProperties("contentRegion", "standardSidebarView"); DiscordClassModules.SettingsWindow = BDFDB.ModuleUtils.findByProperties("contentRegion", "standardSidebarView");
DiscordClassModules.Slider = BDFDB.ModuleUtils.findByProperties("slider", "grabber"); DiscordClassModules.Slider = BDFDB.ModuleUtils.findByProperties("slider", "grabber");
DiscordClassModules.Spoiler = BDFDB.ModuleUtils.findByProperties("spoilerContainer", "hidden"); DiscordClassModules.Spoiler = BDFDB.ModuleUtils.findByProperties("spoilerContainer", "hidden");
DiscordClassModules.SpoilerEmbed = BDFDB.ModuleUtils.findByProperties("hiddenSpoilers", "spoiler");
DiscordClassModules.Switch = BDFDB.ModuleUtils.findByProperties("switchDisabled", "valueChecked"); DiscordClassModules.Switch = BDFDB.ModuleUtils.findByProperties("switchDisabled", "valueChecked");
DiscordClassModules.Table = BDFDB.ModuleUtils.findByProperties("stickyHeader", "sortIcon"); DiscordClassModules.Table = BDFDB.ModuleUtils.findByProperties("stickyHeader", "sortIcon");
DiscordClassModules.Text = BDFDB.ModuleUtils.findByProperties("defaultColor", "defaultMarginh1"); DiscordClassModules.Text = BDFDB.ModuleUtils.findByProperties("defaultColor", "defaultMarginh1");
@ -5980,6 +5981,9 @@
slidermini: ["Slider", "mini"], slidermini: ["Slider", "mini"],
slidertrack: ["Slider", "track"], slidertrack: ["Slider", "track"],
spoilercontainer: ["Spoiler", "spoilerContainer"], spoilercontainer: ["Spoiler", "spoilerContainer"],
spoilerembed: ["SpoilerEmbed", "spoiler"],
spoilerembedhidden: ["SpoilerEmbed", "hiddenSpoilers"],
spoilerembedinline: ["SpoilerEmbed", "inline"],
spoilerhidden: ["Spoiler", "hidden"], spoilerhidden: ["Spoiler", "hidden"],
spoilertext: ["Spoiler", "spoilerText"], spoilertext: ["Spoiler", "spoilerText"],
spoilerwarning: ["Spoiler", "spoilerWarning"], spoilerwarning: ["Spoiler", "spoilerWarning"],

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,12 @@ var ShowImageDetails = (_ => {
this.props.attachment = BDFDB.ReactUtils.findValue(BDFDB.ReactUtils.getValue(this, "_reactInternalFiber.return"), "attachment", {up: true}); this.props.attachment = BDFDB.ReactUtils.findValue(BDFDB.ReactUtils.getValue(this, "_reactInternalFiber.return"), "attachment", {up: true});
BDFDB.ReactUtils.forceUpdate(this); BDFDB.ReactUtils.forceUpdate(this);
} }
componentDidUpdate() {
if (!this.props.attachment || !this.props.attachment.size) {
this.props.attachment = BDFDB.ReactUtils.findValue(BDFDB.ReactUtils.getValue(this, "_reactInternalFiber.return"), "attachment", {up: true});
BDFDB.ReactUtils.forceUpdate(this);
}
}
render() { render() {
return !this.props.attachment ? null : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, { return !this.props.attachment ? null : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
className: BDFDB.disCN._showimagedetailsdetails, className: BDFDB.disCN._showimagedetailsdetails,
@ -160,7 +166,7 @@ var ShowImageDetails = (_ => {
if (window.BDFDB && typeof BDFDB === "object" && BDFDB.loaded) { if (window.BDFDB && typeof BDFDB === "object" && BDFDB.loaded) {
this.stopping = true; this.stopping = true;
BDFDB.MessageUtils.rerenderAll(); //BDFDB.MessageUtils.rerenderAll();
BDFDB.PluginUtils.clear(this); BDFDB.PluginUtils.clear(this);
} }