Added setting to hide channel chat prompt button
This commit is contained in:
parent
3815617a8e
commit
4af9d25573
3 changed files with 36 additions and 2 deletions
|
|
@ -72,6 +72,11 @@ class settingsPanel extends panelObj{
|
|||
*/
|
||||
this.disablePortrait = this.panelDocument.querySelector("#settings-panel-disable-portrait input");
|
||||
|
||||
/**
|
||||
* Disable Send Button
|
||||
*/
|
||||
this.disableSendButton = this.panelDocument.querySelector("#settings-panel-disable-send-button input");
|
||||
|
||||
/**
|
||||
* Audible Ping on PM Recieved
|
||||
*/
|
||||
|
|
@ -131,6 +136,7 @@ class settingsPanel extends panelObj{
|
|||
this.theme.addEventListener('change', this.updateTheme.bind(this));
|
||||
this.chatWidthMinimum.addEventListener('change', this.updateChatWidthMinimum.bind(this));
|
||||
this.disablePortrait.addEventListener('change', this.updateDisablePortrait.bind(this));
|
||||
this.disableSendButton.addEventListener('change', this.updateDisableSendButton.bind(this));
|
||||
this.rxPMSound.addEventListener('change', this.updateRXPMSound.bind(this));
|
||||
this.txPMSound.addEventListener('change', this.updateTXPMSound.bind(this));
|
||||
this.newSeshSound.addEventListener('change', this.updateNewPMSeshSound.bind(this));
|
||||
|
|
@ -269,6 +275,16 @@ class settingsPanel extends panelObj{
|
|||
client.processConfig("disablePortrait", this.disablePortrait.checked);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles change toggle of disable/enable send buttton
|
||||
*/
|
||||
updateDisableSendButton(){
|
||||
console.log(this.disableSendButton);
|
||||
console.log(this.disableSendButton.checked);
|
||||
localStorage.setItem('disableSendButton', this.disableSendButton.checked);
|
||||
client.processConfig("disableSendButton", this.disableSendButton.checked);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles changes to RX PM Sound setting
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue