From 4bbc4afd61aa80a8727cc5b05eb13634e2fe6f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 22 Sep 2015 13:37:31 +0200 Subject: [PATCH] Increase robustness by excluding meta data for pieces that have been loaned before actual launch --- .../ascribe_detail/ikonotv_piece_container.js | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/js/components/whitelabel/wallet/components/ikonotv/ascribe_detail/ikonotv_piece_container.js b/js/components/whitelabel/wallet/components/ikonotv/ascribe_detail/ikonotv_piece_container.js index 0803961b..4d3b3dbe 100644 --- a/js/components/whitelabel/wallet/components/ikonotv/ascribe_detail/ikonotv_piece_container.js +++ b/js/components/whitelabel/wallet/components/ikonotv/ascribe_detail/ikonotv_piece_container.js @@ -65,6 +65,33 @@ let IkonotvPieceContainer = React.createClass({ }, render() { + let furtherDetails = ( + + {getLangText('This piece has been loaned before we started to collect further details.')} + + ); + + if(this.state.piece.extra_data && Object.keys(this.state.piece.extra_data).length > 0 && this.state.piece.acl) { + furtherDetails = ( + + + + + ); + } + if(this.state.piece && this.state.piece.title) { return ( - - - - + {furtherDetails} ); }