Update Translator.plugin.js

This commit is contained in:
Mirco Wittrien 2022-12-12 19:47:37 +01:00 committed by GitHub
parent cf830a334c
commit f66a324b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ module.exports = (_ => {
titleChildren: direction == languageTypes.OUTPUT && [{
text: _ => isChannelSpecific ? _this.labels.language_selection_channel : isGuildSpecific ? _this.labels.language_selection_server : _this.labels.language_selection_global,
name: isChannelSpecific || isGuildSpecific ? BDFDB.LibraryComponents.SvgIcon.Names.LOCK_CLOSED : BDFDB.LibraryComponents.SvgIcon.Names.LOCK_OPEN,
color: isChannelSpecific ? BDFDB.DiscordConstants.ColorVariables["status-danger"] : isGuildSpecific ? BDFDB.DiscordConstants.ColorVariables["status-warning"] : null,
color: isChannelSpecific ? "var(--status-danger)" : isGuildSpecific ? "var(--status-warning)" : null,
onClick: _ => {
if (channelLanguages[this.props.channelId] && channelLanguages[this.props.channelId][place]) {
isChannelSpecific = false;
@ -210,7 +210,7 @@ module.exports = (_ => {
nativeClass: true,
width: 20,
height: 20,
color: BDFDB.DiscordConstants.ColorVariables["status-danger"],
color: "var(--status-danger)",
name: BDFDB.LibraryComponents.SvgIcon.Names.WARNING
})
}),