From 04bda6b14b10451948d6f3cedc55ca6f751e2a18 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 8 Nov 2016 22:09:28 +0100 Subject: test --- src/web/js/components/RightPanel.react.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/web/js/components/RightPanel.react.js') diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js index ba842ce5..8726ab7e 100644 --- a/src/web/js/components/RightPanel.react.js +++ b/src/web/js/components/RightPanel.react.js @@ -77,6 +77,8 @@ var PanelMixin = { } else { items.push(
); } + } else if (field.type == 'list') { + this.props.obj[field.key].map(function(tag) {items.push(
{tag}
)}); } else if (field.type == 'link') { items.push(
@@ -166,6 +168,7 @@ var Article = React.createClass({ isRemovable: function() {return true;}, fields: [{'title': 'Date', 'type': 'string', 'key': 'date'}, {'title': 'Original link', 'type': 'link', 'key': 'link'}, + {'title': 'Tags', 'type': 'list', 'key': 'tags'} ], obj_type: 'article', getTitle: function() {return this.props.obj.title;}, -- cgit