This commit is contained in:
Mirco Wittrien 2021-01-29 20:04:13 +01:00
parent e5dca9a526
commit ab1a05b144
5 changed files with 28 additions and 28 deletions

View File

@ -619,7 +619,7 @@ module.exports = (_ => {
value: data.name,
placeholder: channel.name,
autoFocus: true,
onChange: value => {newData.name = value}
onChange: value => {newData.name = value;}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormDivider, {
className: BDFDB.disCN.dividerdefault
@ -632,7 +632,7 @@ module.exports = (_ => {
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color,
onColorChange: value => {newData.color = value}
onColorChange: value => {newData.color = value;}
})
]
}),
@ -643,7 +643,7 @@ module.exports = (_ => {
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: channel.isCategory() && data.inheritColor,
disabled: !channel.isCategory(),
onChange: value => {newData.inheritColor = value}
onChange: value => {newData.inheritColor = value;}
}),
channel.isGroupDM() && BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.marginbottom20,

View File

@ -589,7 +589,7 @@ module.exports = (_ => {
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color1,
onColorChange: value => {newData.color1 = value}
onColorChange: value => {newData.color1 = value;}
})
]
}),
@ -599,7 +599,7 @@ module.exports = (_ => {
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color2,
onColorChange: value => {newData.color2 = value}
onColorChange: value => {newData.color2 = value;}
})
]
})
@ -614,7 +614,7 @@ module.exports = (_ => {
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color3,
onColorChange: value => {newData.color3 = value}
onColorChange: value => {newData.color3 = value;}
})
]
}),
@ -624,7 +624,7 @@ module.exports = (_ => {
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color4,
onColorChange: value => {newData.color4 = value}
onColorChange: value => {newData.color4 = value;}
})
]
})

View File

@ -1182,7 +1182,7 @@ module.exports = (_ => {
value: data.name,
placeholder: member.nick || user.username,
autoFocus: true,
onChange: value => {newData.name = value}
onChange: value => {newData.name = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormItem, {
@ -1190,7 +1190,7 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextInput, {
value: data.tag,
onChange: value => {newData.tag = value}
onChange: value => {newData.tag = value;}
})
}),
BDFDB.ReactUtils.createElement("div", {
@ -1283,7 +1283,7 @@ module.exports = (_ => {
emoji: data.statusEmoji,
allowManagedEmojis: true,
ref: instance => {if (instance) statusEmojiInput = instance;},
onSelect: value => {newData.statusEmoji = value}
onSelect: value => {newData.statusEmoji = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextInput, {
@ -1293,7 +1293,7 @@ module.exports = (_ => {
placeholder: activity && activity.type == BDFDB.DiscordConstants.ActivityTypes.CUSTOM_STATUS && activity.state || "",
disabled: data.removeStatus,
ref: instance => {if (instance) statusInput = instance;},
onChange: value => {newData.status = value}
onChange: value => {newData.status = value;}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
size: BDFDB.LibraryComponents.Button.Sizes.NONE,
@ -1325,7 +1325,7 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color1,
onColorChange: value => {newData.color1 = value}
onColorChange: value => {newData.color1 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormItem, {
@ -1333,7 +1333,7 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color2,
onColorChange: value => {newData.color2 = value}
onColorChange: value => {newData.color2 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsItem, {
@ -1342,7 +1342,7 @@ module.exports = (_ => {
label: this.labels.modal_userolecolor,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.useRoleColor,
onChange: value => {newData.useRoleColor = value}
onChange: value => {newData.useRoleColor = value;}
})
]
}),
@ -1356,7 +1356,7 @@ module.exports = (_ => {
color: data.color3,
disabled: data.ignoreTagColor,
ref: instance => {if (instance) colorPicker3 = instance;},
onColorChange: value => {newData.color3 = value}
onColorChange: value => {newData.color3 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormItem, {
@ -1366,7 +1366,7 @@ module.exports = (_ => {
color: data.color4,
disabled: data.ignoreTagColor,
ref: instance => {if (instance) colorPicker4 = instance;},
onColorChange: value => {newData.color4 = value}
onColorChange: value => {newData.color4 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsItem, {
@ -1392,7 +1392,7 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color5,
onColorChange: value => {newData.color5 = value}
onColorChange: value => {newData.color5 = value;}
})
})
]

View File

@ -896,7 +896,7 @@ module.exports = (_ => {
value: data.name,
placeholder: data.name,
autoFocus: true,
onChange: value => {newData.name = value}
onChange: value => {newData.name = value;}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormDivider, {
className: BDFDB.disCN.dividerdefault
@ -909,7 +909,7 @@ module.exports = (_ => {
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color,
onColorChange: value => {newData.color = value}
onColorChange: value => {newData.color = value;}
})
]
})

View File

@ -835,7 +835,7 @@ module.exports = (_ => {
value: folder.folderName,
placeholder: folder.folderName || BDFDB.LanguageUtils.LanguageStrings.SERVER_FOLDER_PLACEHOLDER,
autoFocus: true,
onChange: value => {newData.folderName = value}
onChange: value => {newData.folderName = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormItem, {
@ -843,7 +843,7 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(folderIconPickerComponent, {
selectedIcon: data.iconID,
onSelect: value => {newData.iconID = value}
onSelect: value => {newData.iconID = value;}
}, true)
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsItem, {
@ -852,7 +852,7 @@ module.exports = (_ => {
label: this.labels.modal_usecloseicon,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.useCloseIcon,
onChange: value => {newData.useCloseIcon = value}
onChange: value => {newData.useCloseIcon = value;}
})
]
}),
@ -866,7 +866,7 @@ module.exports = (_ => {
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color1,
defaultFallback: !data.color1 && !data.swapColors,
onColorChange: value => {newData.color1 = value}
onColorChange: value => {newData.color1 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormItem, {
@ -875,7 +875,7 @@ module.exports = (_ => {
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color2,
defaultFallback: !data.color2 && data.swapColors,
onColorChange: value => {newData.color2 = value}
onColorChange: value => {newData.color2 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsItem, {
@ -884,7 +884,7 @@ module.exports = (_ => {
label: this.labels.modal_swapcolor,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.swapColors,
onChange: value => {newData.swapColors = value}
onChange: value => {newData.swapColors = value;}
})
]
}),
@ -897,7 +897,7 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color3,
onColorChange: value => {newData.color3 = value}
onColorChange: value => {newData.color3 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormItem, {
@ -905,7 +905,7 @@ module.exports = (_ => {
className: BDFDB.disCN.marginbottom20,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ColorSwatches, {
color: data.color4,
onColorChange: value => {newData.color4 = value}
onColorChange: value => {newData.color4 = value;}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsItem, {
@ -914,7 +914,7 @@ module.exports = (_ => {
label: this.labels.modal_copytooltipcolor,
tag: BDFDB.LibraryComponents.FormComponents.FormTitle.Tags.H5,
value: data.copyTooltipColor,
onChange: value => {newData.copyTooltipColor = value}
onChange: value => {newData.copyTooltipColor = value;}
})
]
}),