Update ServerFolders.plugin.js

This commit is contained in:
Mirco Wittrien 2020-01-31 21:31:06 +01:00
parent 5188c1931c
commit 30e9d41543
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
class ServerFolders {
getName () {return "ServerFolders";}
getVersion () {return "6.6.4";}
getVersion () {return "6.6.5";}
getAuthor () {return "DevilBro";}
@ -11,7 +11,7 @@ class ServerFolders {
constructor () {
this.changelog = {
"fixed":[["Drag","Fixed issue where a server would be dragged instead of clicked when clicking swiftly"]],
"fixed":[["Tabs","Fixed Settings Tabs not showing in the folder settings modal"],["Drag","Fixed issue where a server would be dragged instead of clicked when clicking swiftly"]],
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
};
@ -664,7 +664,7 @@ class ServerFolders {
if (e.returnvalue) {
let folder = BDFDB.LibraryModules.FolderStore.getGuildFolderById(e.instance.props.folderId);
let data = this.getFolderConfig(e.instance.props.folderId);
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {name: "Header"});
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {name: ["ModalHeader", "Header"]});
if (index > -1) {
children[index].props.className = BDFDB.DOMUtils.formatClassName(children[index].props.className, BDFDB.disCN.modalheaderhassibling),
children.splice(index + 1, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {