aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 23:50:03 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 23:50:03 +0100
commit89a51613ba257ab39961e54441c86fba45e1b8a8 (patch)
tree003eecf35bf18ce51cc8ae0def7bee0e6c8022fc /src
parenttest (diff)
downloadnewspipe-89a51613ba257ab39961e54441c86fba45e1b8a8.tar.gz
newspipe-89a51613ba257ab39961e54441c86fba45e1b8a8.tar.bz2
newspipe-89a51613ba257ab39961e54441c86fba45e1b8a8.zip
Tags are displayed in one single line.
Diffstat (limited to 'src')
-rw-r--r--src/web/js/components/RightPanel.react.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js
index 8726ab7e..c549e416 100644
--- a/src/web/js/components/RightPanel.react.js
+++ b/src/web/js/components/RightPanel.react.js
@@ -78,7 +78,9 @@ var PanelMixin = {
items.push(<dd key={key}><Glyphicon glyph="unchecked" /></dd>);
}
} else if (field.type == 'list') {
- this.props.obj[field.key].map(function(tag) {items.push(<dd key={tag}>{tag}</dd>)});
+ items.push(<dd key={key}>{this.props.obj[field.key].reduce(function(tag, concatenatedTag) {
+ return tag.concat(", ", concatenatedTag)
+ })}</dd>)
} else if (field.type == 'link') {
items.push(<dd key={key}>
<a href={this.props.obj[field.key]}>
bgstack15