only display message for pending requests

This commit is contained in:
rlx 2016-01-17 15:14:32 +05:30
parent 31f5a100f6
commit 1d585811d3
1 changed files with 16 additions and 12 deletions

View File

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