0

Change placeholder when chat is disabled

This commit is contained in:
Gabe Kangas 2020-07-16 20:15:08 -07:00
parent 3eba516f04
commit addfce2ec9

View File

@ -246,12 +246,14 @@ class MessagingInterface {
disableChat() {
if (this.formMessageInput) {
this.formMessageInput.disabled = true;
this.formMessageInput.placeholder = "Chat is offline."
}
// also show "disabled" text/message somewhere.
}
enableChat() {
if (this.formMessageInput) {
this.formMessageInput.disabled = false;
this.formMessageInput.placeholder = "Message"
}
}
// handle Vue.js message display