webui: unsubscribe chat-lobby

This commit is contained in:
zeners 2016-03-12 23:38:39 +01:00
parent 41a8e53abf
commit 1b72d2cec3
2 changed files with 13 additions and 2 deletions

View File

@ -53,6 +53,6 @@ should provide forward, backward and follow-list-end
need 4 master
-------------
[ ] unsubscribe lobby
[X] unsubscribe lobby
[X] unread chat message counter in menu
[ ] list chat-lobby participants
[X] list chat-lobby participants

View File

@ -176,6 +176,17 @@ function lobby(lobbyid){
) {
//set participants
particips = [
m("div.btn", {
style: {
"text-align":"center"
},
onclick: function (){
rs.request("chat/unsubscribe_lobby",{
id:lobdt.id,
});
m.route("/chat");
}
},"unsubscribe"),
m("h3","participants:"),
rs.list(
"chat/lobby_participants/" + lobbyid,