Change placeholder when chat is disabled
This commit is contained in:
parent
3eba516f04
commit
addfce2ec9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user