webui: route peer location to chat-lobby

This commit is contained in:
zeners 2016-03-12 17:44:43 +01:00
parent b1da4ed67e
commit b1286f06ed
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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);
});