From 80e25fe45ca7ec256b73c923d421aedb91a39523 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 22 Feb 2017 04:54:31 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/peer.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/features/peer.js b/ui (gen4)/features/peer.js index 711179af..8e489b5f 100755 --- a/ui (gen4)/features/peer.js +++ b/ui (gen4)/features/peer.js @@ -61,12 +61,14 @@ var PeerActions = actions.Actions({ function(name){ return !!this.getActionAttr(name, '__peer__') }], - peerCreate: ['- Peer/', - function(){ - // XXX - }], + // XXX this should create or connect to a peer depending on protocol... peerConnect: ['- Peer/', - function(){ + function(id, options){ + // XXX + return id + }], + peerDisconnect: ['- Peer/', + function(id){ // XXX }], @@ -83,6 +85,7 @@ var PeerActions = actions.Actions({ peerList: ['- Peer/', function(){ return Object.keys(this.__peers || {}) }], + // XXX format spec!!! peerSpec: ['- Peer/', function(id){ // XXX