Update PersonalPins.plugin.js
This commit is contained in:
parent
d1465509ce
commit
557ce6e59b
|
@ -2,7 +2,7 @@
|
||||||
* @name PersonalPins
|
* @name PersonalPins
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.0.8
|
* @version 2.0.9
|
||||||
* @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
|
||||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "PersonalPins",
|
"name": "PersonalPins",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "2.0.8",
|
"version": "2.0.9",
|
||||||
"description": "Allows you to locally pin Messages"
|
"description": "Allows you to locally pin Messages"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -332,8 +332,8 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
after: {
|
before: {
|
||||||
HeaderBarContainer: "render"
|
HeaderBar: "default"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -348,11 +348,11 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
|
|
||||||
BDFDB.PatchUtils.forceAllUpdates(this);
|
BDFDB.DiscordUtils.rerenderAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
onStop () {
|
onStop () {
|
||||||
BDFDB.PatchUtils.forceAllUpdates(this);
|
BDFDB.DiscordUtils.rerenderAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
getSettingsPanel (collapseStates = {}) {
|
getSettingsPanel (collapseStates = {}) {
|
||||||
|
@ -392,7 +392,7 @@ module.exports = (_ => {
|
||||||
onSettingsClosed () {
|
onSettingsClosed () {
|
||||||
if (this.SettingsUpdated) {
|
if (this.SettingsUpdated) {
|
||||||
delete this.SettingsUpdated;
|
delete this.SettingsUpdated;
|
||||||
BDFDB.PatchUtils.forceAllUpdates(this);
|
BDFDB.DiscordUtils.rerenderAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -485,8 +485,8 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
processHeaderBarContainer (e) {
|
processHeaderBar (e) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(BDFDB.ObjectUtils.get(e.returnvalue, "props.toolbar"), {name: "FluxContainer(Search)"});
|
let [children, index] = BDFDB.ReactUtils.findParent(BDFDB.ObjectUtils.get(e.instance, "props.toolbar"), {name: "FluxContainer(Search)"});
|
||||||
if (index > -1) children.splice(index, 0, 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,
|
||||||
|
|
Loading…
Reference in New Issue