diff --git a/libresapi/src/webui-src/README.md b/libresapi/src/webui-src/README.md index 49f7d3bb0..057fb560b 100644 --- a/libresapi/src/webui-src/README.md +++ b/libresapi/src/webui-src/README.md @@ -36,7 +36,7 @@ google material design has nice rules for color, spacing and everything: https:/ [ ] find icons, maybe use google material design iconfont [X] use urls/mithril routing for the menu. urls could replace state stored in rs.content [X] drag and drop private key upload and import -[ ] link from peer location to chat (use urls and mithril routing) +[X] link from peer location to chat (use urls and mithril routing) [X] add/remove friend, own cert [X] downloads, search [ ] make reusable infinite list controller, the js part to load data from Pagination.h (tweak Pagination.h to make everything work) diff --git a/libresapi/src/webui-src/app/peers.js b/libresapi/src/webui-src/app/peers.js index f58d9bbbc..76ff118a8 100644 --- a/libresapi/src/webui-src/app/peers.js +++ b/libresapi/src/webui-src/app/peers.js @@ -34,6 +34,9 @@ module.exports = {view: function(){ return m("div",{ style:"color:" + (location.is_online ? "lime": "grey") + ";cursor:pointer", + onclick: function(){ + m.route("/chat?lobby=" + location.chat_id) + } },location.location); });