This commit is contained in:
Mirco Wittrien 2019-06-26 08:52:17 +02:00
parent b37685c564
commit 211ddb062b
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
class EditChannels { class EditChannels {
getName () {return "EditChannels";} getName () {return "EditChannels";}
getVersion () {return "3.9.6";} getVersion () {return "3.9.7";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -11,7 +11,7 @@ class EditChannels {
initConstructor () { initConstructor () {
this.changelog = { 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 = {}; this.labels = {};
@ -300,9 +300,9 @@ class EditChannels {
if (channel) { if (channel) {
var textarea = wrapper.querySelector("textarea"); var textarea = wrapper.querySelector("textarea");
if (!textarea) return; 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); 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); BDFDB.removeEventListener(this, textarea);
if (BDFDB.getData("changeInAutoComplete", this, "settings")) { if (BDFDB.getData("changeInAutoComplete", this, "settings")) {

View File

@ -486,7 +486,7 @@ class EditUsers {
if (channel) { if (channel) {
var textarea = wrapper.querySelector("textarea"); var textarea = wrapper.querySelector("textarea");
if (!textarea) return; 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]); let user = this.UserUtils.getUser(channel.recipients[0]);
if (user) { if (user) {
let data = this.getUserData(user.id, wrapper); let data = this.getUserData(user.id, wrapper);