This commit is contained in:
Mirco Wittrien 2020-02-17 11:33:49 +01:00
parent 191703ae44
commit 52c8685e4b
8 changed files with 18 additions and 9 deletions

View File

@ -7397,7 +7397,7 @@
align: InternalComponents.LibraryComponents.Flex.Align.CENTER,
children: [
this.props.label ? (this.props.tag ? BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.FormComponents.FormTitle, {
className: this.props.labelClassName,
className: BDFDB.DOMUtils.formatClassName(this.props.labelClassName, BDFDB.disCN.marginreset),
tag: this.props.tag,
children: this.props.label
}) : BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex.Child, {

File diff suppressed because one or more lines are too long

View File

@ -173,7 +173,7 @@ var EditChannels = (_ => {
label: this.labels.submenu_channelsettings_text,
action: _ => {
BDFDB.ContextMenuUtils.close(e.instance);
this.showChannelSettings(e.instance.props.channel);
this.openChannelSettingsModal(e.instance.props.channel);
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Item, {
@ -494,7 +494,7 @@ var EditChannels = (_ => {
BDFDB.ReactUtils.forceUpdate(BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.app), {name:"Channel", unlimited:true}));
}
showChannelSettings (channel) {
openChannelSettingsModal (channel) {
let data = BDFDB.DataUtils.load(this, "channels", channel.id) || {};
BDFDB.ModalUtils.open(this, {
@ -530,6 +530,7 @@ var EditChannels = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom20 + " input-inheritcolor",
label: this.labels.modal_inheritcolor_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: channel.type == 4 && data.inheritColor,
disabled: channel.type != 4
})

View File

@ -168,7 +168,7 @@ var EditServers = (_ => {
label: this.labels.submenu_serversettings_text,
action: _ => {
BDFDB.ContextMenuUtils.close(e.instance);
this.showServerSettings(e.instance.props.guild.id);
this.openGuildSettingsModal(e.instance.props.guild.id);
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Item, {
@ -372,7 +372,7 @@ var EditServers = (_ => {
}
}
showServerSettings (guildId) {
openGuildSettingsModal (guildId) {
let guild = BDFDB.LibraryModules.GuildStore.getGuild(guildId);
if (!guild) return;
let data = BDFDB.DataUtils.load(this, "servers", guild.id) || {};
@ -420,6 +420,7 @@ var EditServers = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom8 + " input-ignorecustomname",
label: this.labels.modal_ignorecustomname_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.ignoreCustomName,
onChange: (value, instance) => {
currentIgnoreCustomNameState = value;
@ -449,6 +450,7 @@ var EditServers = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom8 + " input-removeicon",
label: this.labels.modal_removeicon_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.removeIcon,
onChange: (value, instance) => {
let iconinputins = BDFDB.ReactUtils.findOwner(instance._reactInternalFiber.return, {props:[["inputId","GUILDICON"]]});
@ -479,6 +481,7 @@ var EditServers = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom20 + " input-removebanner",
label: this.labels.modal_removebanner_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.removeBanner,
disabled: guild.id == "410787888507256842",
onChange: (value, instance) => {

View File

@ -245,7 +245,7 @@ var EditUsers = (_ => {
label: this.labels.submenu_usersettings_text,
action: _ => {
BDFDB.ContextMenuUtils.close(e.instance);
this.showUserSettings(e.instance.props.user);
this.openUserSettingsModal(e.instance.props.user);
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Item, {
@ -820,7 +820,7 @@ var EditUsers = (_ => {
BDFDB.MessageUtils.rerenderAll();
}
showUserSettings (info) {
openUserSettingsModal (info) {
let data = BDFDB.DataUtils.load(this, "users", info.id) || {};
let member = BDFDB.LibraryModules.MemberStore.getMember(BDFDB.LibraryModules.LastGuildStore.getGuildId(), info.id) || {};
@ -866,6 +866,7 @@ var EditUsers = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom20 + " input-removeicon",
label: this.labels.modal_removeicon_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.removeIcon,
onChange: (value, instance) => {
let avatarinputins = BDFDB.ReactUtils.findOwner(instance._reactInternalFiber.return, {props:[["inputId","USERAVATAR"]]});
@ -925,6 +926,7 @@ var EditUsers = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom20 + " input-ignoretagcolor",
label: this.labels.modal_ignoretagcolor_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.ignoreTagColor,
onChange: (value, instance) => {
let colorpicker3ins = BDFDB.ReactUtils.findOwner(instance._reactInternalFiber.return, {props:[["number",3]]});

View File

@ -346,6 +346,7 @@ var GoogleTranslateOption = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom8,
label: "Translate your Messages before sending",
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: translating,
onChange: value => {
translating = value;

View File

@ -724,6 +724,7 @@ var ServerFolders = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom20 + " input-usecloseicon",
label: this.labels.modal_usecloseicon_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.useCloseIcon
})
]
@ -753,6 +754,7 @@ var ServerFolders = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom20 + " input-swapcolors",
label: this.labels.modal_swapcolor_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.swapColors
})
]
@ -780,6 +782,7 @@ var ServerFolders = (_ => {
type: "Switch",
className: BDFDB.disCN.marginbottom20 + " input-copytooltipcolor",
label: this.labels.modal_copytooltipcolor_text,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.copyTooltipColor
})
]

View File

@ -97,7 +97,6 @@ class TimedLightDarkMode {
keys: ["settings", "running"],
value: settings.running,
label: `${BDFDB.LanguageUtils.LanguageStrings.THEME} Timer`,
labelClassName: BDFDB.disCN.marginreset,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
onChange: (value, instance) => {
this.startInterval();