Update PersonalPins.plugin.js
This commit is contained in:
parent
e029475d47
commit
55bde631ad
|
@ -2,7 +2,7 @@
|
||||||
* @name PersonalPins
|
* @name PersonalPins
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.1.2
|
* @version 2.1.3
|
||||||
* @description Allows you to locally pin Messages
|
* @description Allows you to locally pin Messages
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -554,8 +554,8 @@ module.exports = (_ => {
|
||||||
|
|
||||||
processHeaderBar (e) {
|
processHeaderBar (e) {
|
||||||
if (!e.instance.props.toolbar) return;
|
if (!e.instance.props.toolbar) return;
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.instance.props.toolbar, {key: "members"});
|
let [children, index] = BDFDB.ReactUtils.findParent(e.instance.props.toolbar, {props: [["className", BDFDB.disCN.channelheadersearch]]});
|
||||||
if (index > -1) children.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.PopoutContainer, {
|
if (index > -1) children.splice(index, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.PopoutContainer, {
|
||||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||||
text: this.labels.popout_note,
|
text: this.labels.popout_note,
|
||||||
tooltipConfig: {type: "bottom"},
|
tooltipConfig: {type: "bottom"},
|
||||||
|
|
Loading…
Reference in New Issue