From 1d585811d3baa69211252941fbce470cf1763703 Mon Sep 17 00:00:00 2001 From: rlx Date: Sun, 17 Jan 2016 15:14:32 +0530 Subject: [PATCH] only display message for pending requests --- static/js/peersPanel.js | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/static/js/peersPanel.js b/static/js/peersPanel.js index bf1b57c..e0420bd 100644 --- a/static/js/peersPanel.js +++ b/static/js/peersPanel.js @@ -336,18 +336,22 @@ oml.ui.peersPanel = function() { }) .appendTo($form); - Ox.Input({ - readonly: true, - label: Ox._('Message'), - labelWidth: 128, - style: 'squared', - value: user.message || '', - width: 480 - }) - .css({ - marginTop: '8px' - }) - .appendTo($form); + if (user.pending) { + + Ox.Input({ + readonly: true, + label: Ox._('Message'), + labelWidth: 128, + style: 'squared', + value: user.message || '', + width: 480 + }) + .css({ + marginTop: '8px' + }) + .appendTo($form); + + } }