only display message for pending requests

This commit is contained in:
rlx 2016-01-17 15:14:32 +05:30
parent 31f5a100f6
commit 1d585811d3

View file

@ -336,18 +336,22 @@ oml.ui.peersPanel = function() {
}) })
.appendTo($form); .appendTo($form);
Ox.Input({ if (user.pending) {
readonly: true,
label: Ox._('Message'), Ox.Input({
labelWidth: 128, readonly: true,
style: 'squared', label: Ox._('Message'),
value: user.message || '', labelWidth: 128,
width: 480 style: 'squared',
}) value: user.message || '',
.css({ width: 480
marginTop: '8px' })
}) .css({
.appendTo($form); marginTop: '8px'
})
.appendTo($form);
}
} }