stuff
This commit is contained in:
parent
61a3c87384
commit
40f06fdb4d
|
@ -2,7 +2,7 @@
|
|||
* @name EditUsers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 4.8.2
|
||||
* @version 4.8.3
|
||||
* @description Allows you to locally edit Users
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -403,7 +403,7 @@ module.exports = (_ => {
|
|||
}
|
||||
if (e.instance.props.user) {
|
||||
if (this.settings.places.contextMenu) {
|
||||
let userData = this.getUserData(user.id);
|
||||
let userData = this.getUserData(e.instance.props.user.id);
|
||||
if (userData.globalName && userData.globalName != e.instance.props.user.globalName || !userData.globalName && userData.username != e.instance.props.user.username) {
|
||||
let username = userData.globalName || userData.username;
|
||||
let [timeoutChildren, timeoutIndex] = BDFDB.ContextMenuUtils.findItem(e.returnvalue, {id: "timeout"});
|
||||
|
|
|
@ -781,7 +781,7 @@ module.exports = (_ => {
|
|||
});
|
||||
|
||||
let [children, index] = config.isNative && nativeIndex > -1 ? [nativeParent, nativeIndex] : BDFDB.ContextMenuUtils.findItem(e.returnvalue, {id: "devmode-copy-id", group: true});
|
||||
children.splice(index > -1 ? index : children.length, 0, config.isNative ? subMenu : BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuGroup, {
|
||||
children.splice(index > -1 ? index : children.length, 0, config.isNative && nativeIndex > -1 ? subMenu : BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuGroup, {
|
||||
children: BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuItem, {
|
||||
label: config.label || (this.isValid(validUrls[0].file, "video") ? this.labels.context_videoactions : this.labels.context_imageactions),
|
||||
id: BDFDB.ContextMenuUtils.createItemId(this.name, config.id, "main-subitem"),
|
||||
|
|
Loading…
Reference in New Issue