Add placeholder text for #877

This commit is contained in:
Calvin Montgomery 2021-03-22 22:58:38 -07:00
parent da53decdd5
commit 8562b2173e
2 changed files with 6 additions and 1 deletions

View file

@ -2,7 +2,7 @@
"author": "Calvin Montgomery", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.76.2", "version": "3.76.3",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },

View file

@ -1086,6 +1086,11 @@ function handlePermissionChange() {
} }
$("#chatline").attr("disabled", !hasPermission("chat")); $("#chatline").attr("disabled", !hasPermission("chat"));
if (!hasPermission("chat")) {
$("#chatline").attr("placeholder", "Chat permissions are restricted on this channel");
} else {
$("#chatline").attr("placeholder", "");
}
rebuildPlaylist(); rebuildPlaylist();
} }