This commit is contained in:
Mirco Wittrien 2020-01-27 12:35:20 +01:00
parent 358d7eca85
commit 424dc35eab
3 changed files with 10 additions and 4 deletions

View File

@ -8219,6 +8219,7 @@
ref: this.props.inputRef
}), "errorMessage", "focused", "error", "success", "inputClassName", "inputPrefix", "size", "editable", "inputRef", "style", "mode", "filter", "useFilepath")),
this.props.type == "color" ? BDFDB.ReactUtils.createElement(LibraryComponents.Flex.Child, {
wrap: true,
children: BDFDB.ReactUtils.createElement(LibraryComponents.ColorSwatches, {
colors: [],
compMode: this.props.mode == "comp",

File diff suppressed because one or more lines are too long

View File

@ -188,8 +188,8 @@ class CompleteTimestamps {
BDFDB.ModuleUtils.patch(this, (BDFDB.ModuleUtils.findByName("SystemMessage", false) || {}).exports, "default", {after: e => {
this.processSystemMessage({instance:{props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:"default"});
}});
BDFDB.ModuleUtils.forceAllUpdates(this);
this.forceUpdateAll();
}
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
}
@ -213,7 +213,7 @@ class CompleteTimestamps {
onSettingsClosed () {
if (this.SettingsUpdated) {
delete this.SettingsUpdated;
BDFDB.ModuleUtils.forceAllUpdates(this);
this.forceUpdateAll();
}
}
@ -400,4 +400,9 @@ class CompleteTimestamps {
else BDFDB.DOMUtils.removeLocalStyle(this.name + "CompactCorrection");
}
}
forceUpdateAll () {
BDFDB.ModuleUtils.forceAllUpdates(this);
BDFDB.ReactUtils.forceUpdate(BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.app), {name:"SystemMessageWrapper", unlimited:true, all:true}));
}
}