From 211ddb062ba22703becf1c73a19909921e26ee05 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 26 Jun 2019 08:52:17 +0200 Subject: [PATCH] stuff --- Plugins/EditChannels/EditChannels.plugin.js | 8 ++++---- Plugins/EditUsers/EditUsers.plugin.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index 9850515260..7f3bba99dd 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -3,7 +3,7 @@ class EditChannels { getName () {return "EditChannels";} - getVersion () {return "3.9.6";} + getVersion () {return "3.9.7";} getAuthor () {return "DevilBro";} @@ -11,7 +11,7 @@ class EditChannels { initConstructor () { this.changelog = { - "fixed":[["Channel Header","Fixed the issue where the changed channel header would be reset by EditUsers"]] + "fixed":[["No Perms Text","Fixed the issue whee the no permission text was replaced by the default channel text"]] }; this.labels = {}; @@ -300,9 +300,9 @@ class EditChannels { if (channel) { var textarea = wrapper.querySelector("textarea"); if (!textarea) return; - if (channel.type == 0 && instance.props.type == "normal") { + if (channel.type == 0 && instance.props.type == "normal" && !instance.props.disabled) { let data = this.getChannelData(channel.id, wrapper); - wrapper.querySelector("textarea").setAttribute("placeholder", BDFDB.LanguageStrings.TEXTAREA_PLACEHOLDER.replace("{{channel}}", "#" + (data.name || channel.name))); + wrapper.querySelector("textarea").setAttribute("placeholder", BDFDB.LanguageStringsFormat("TEXTAREA_PLACEHOLDER", "#" + (data.name || channel.name))); } BDFDB.removeEventListener(this, textarea); if (BDFDB.getData("changeInAutoComplete", this, "settings")) { diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 4e75a12b65..89acf00f07 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -486,7 +486,7 @@ class EditUsers { if (channel) { var textarea = wrapper.querySelector("textarea"); if (!textarea) return; - if (instance.props.type == "normal" && channel.type == 1) { + if (channel.type == 1 && instance.props.type == "normal" && !instance.props.disabled) { let user = this.UserUtils.getUser(channel.recipients[0]); if (user) { let data = this.getUserData(user.id, wrapper);