Update EditUsers.plugin.js
This commit is contained in:
parent
97b5046e77
commit
a6559f5296
|
@ -2,7 +2,7 @@
|
|||
* @name EditUsers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 4.6.8
|
||||
* @version 4.6.9
|
||||
* @description Allows you to locally edit Users
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -100,6 +100,7 @@ module.exports = (_ => {
|
|||
AutocompleteUserResult: "render",
|
||||
UserThemeBanner: "default",
|
||||
UserBanner: "default",
|
||||
UserBannerMask: "default",
|
||||
UserPopoutAvatar: "UserPopoutAvatar",
|
||||
UserThemePopoutHeader: "default",
|
||||
UsernameSection: "default",
|
||||
|
@ -604,25 +605,31 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
processUserThemeBanner (e) {
|
||||
if (e.instance.props.user && changedUsers[e.instance.props.user.id]) {
|
||||
if (changedUsers[e.instance.props.user.id].removeBanner) e.instance.props.bannerSrc = null;
|
||||
else if (changedUsers[e.instance.props.user.id].banner) e.instance.props.bannerSrc = changedUsers[e.instance.props.user.id].banner;
|
||||
}
|
||||
this.processUserBanner(e);
|
||||
}
|
||||
|
||||
processUserBanner (e) {
|
||||
if (e.instance.props.user && changedUsers[e.instance.props.user.id]) {
|
||||
if (changedUsers[e.instance.props.user.id].removeBanner) e.instance.props.bannerSrc = null;
|
||||
else if (changedUsers[e.instance.props.user.id].banner) e.instance.props.bannerSrc = changedUsers[e.instance.props.user.id].banner;
|
||||
if (changedUsers[e.instance.props.user.id].removeBanner) {
|
||||
e.instance.props.bannerSrc = null;
|
||||
e.instance.props.displayProfile.banner = null;
|
||||
}
|
||||
else if (changedUsers[e.instance.props.user.id].banner) {
|
||||
e.instance.props.bannerSrc = changedUsers[e.instance.props.user.id].banner;
|
||||
e.instance.props.displayProfile.banner = changedUsers[e.instance.props.user.id].banner;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
processUserBannerMask (e) {
|
||||
if (e.instance.props.user && changedUsers[e.instance.props.user.id]) {
|
||||
if (changedUsers[e.instance.props.user.id].removeBanner) e.instance.props.isPremium = false;
|
||||
else if (changedUsers[e.instance.props.user.id].banner) e.instance.props.isPremium = true;
|
||||
}
|
||||
}
|
||||
|
||||
processUserPopoutAvatar (e) {
|
||||
if (this.settings.places.userPopout && e.instance.props.user && changedUsers[e.instance.props.user.id]) e.instance.props.user = this.getUserData(e.instance.props.user.id, true, true);
|
||||
if (e.instance.props.displayProfile && e.instance.props.user && changedUsers[e.instance.props.user.id]) {
|
||||
if (changedUsers[e.instance.props.user.id].removeBanner) e.instance.props.displayProfile.banner = null;
|
||||
else if (changedUsers[e.instance.props.user.id].banner) e.instance.props.displayProfile.banner = changedUsers[e.instance.props.user.id].banner;
|
||||
}
|
||||
this.processUserThemePopoutHeader(e);
|
||||
}
|
||||
|
||||
processUserThemePopoutHeader (e) {
|
||||
|
|
Loading…
Reference in New Issue