This commit is contained in:
Mirco Wittrien 2020-02-07 12:12:32 +01:00
parent a1c4f6540a
commit a6945b75d6
2 changed files with 11 additions and 9 deletions

View File

@ -1022,19 +1022,13 @@
InviteCard: "InviteRow",
MemberCard: "Member",
PopoutContainer: "Popout",
QuickSwitchChannelResult: "Channel",
QuickSwitchGuildResult: "Guild",
QuickSwitchResult: "Result",
QuickSwitchUserResult: "User",
UserProfile: "UserProfileBody",
WebhookCard: "Webhook"
};
WebModulesData.ForceObserve = [
"DirectMessage",
"GuildIcon",
"QuickSwitchChannelResult",
"QuickSwitchGuildResult",
"QuickSwitchUserResult"
"GuildIcon"
];
WebModulesData.DefaultRender = [
"DiscordTag",
@ -1054,7 +1048,11 @@
]);
WebModulesData.LoadedInComponents = {
AutocompleteChannelResult: "AutocompleteComponents.Channel",
AutocompleteUserResult: "AutocompleteComponents.User"
AutocompleteUserResult: "AutocompleteComponents.User",
QuickSwitchChannelResult: "QuickSwitchComponents.Channel",
QuickSwitchGroupDMResult: "QuickSwitchComponents.GroupDM",
QuickSwitchGuildResult: "QuickSwitchComponents.Guild",
QuickSwitchUserResult: "QuickSwitchComponents.User"
};
WebModulesData.Patchfinder = {
Account: "accountinfo",
@ -7740,6 +7738,10 @@
}
};
LibraryComponents.QuickSwitchComponents = Object.assign({}, BDFDB.ModuleUtils.findByProperties("Channel", "GroupDM", "Header"));
LibraryComponents.QuickSwitchComponents.Menu = BDFDB.ModuleUtils.findByName("QuickSwitcher");
LibraryComponents.RadioGroup = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.RadioGroup") || reactInitialized && class BDFDB_RadioGroup extends LibraryModules.React.Component {
handleChange(value) {
this.props.value = value.value;

File diff suppressed because one or more lines are too long