Update BDFDB.js

This commit is contained in:
Mirco Wittrien 2020-02-03 11:07:48 +01:00
parent 8d6fc4ed91
commit 074fa5890f
1 changed files with 19 additions and 0 deletions

View File

@ -9633,6 +9633,25 @@
}
}
}
if (BDFDB.ObjectUtils.toArray(BDFDB.myPlugins).some(n => n == data)) {
[children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props: [["className", BDFDB.disCN._repofooter]]});
if (index == -1) {
let footer = BDFDB.ReactUtils.createElement("div", {className: BDFDB.disCN._repofooter, children: []});
e.returnvalue.props.children.push(footer);
children = footer.props.children;
}
else {
children[index].props.children = [children[index].props.children].flat();
children = children[index].props.children;
}
children.push(BDFDB.ReactUtils.createElement("button", {
className: BDFDB.disCNS._reposettingsbutton,
children: "Library Settings",
onClick: event => {
console.log(event);
}
}));
}
}
};
BDFDBprocessFunctions.processV2CPluginCard = function (e) {BDFDBprocessFunctions._processCard(e, e.instance.props.plugin);};