1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

Cosmetic changes in EditionContainer and CoaVerifyContainer

This commit is contained in:
Tim Daubenschütz 2015-12-09 15:56:47 +01:00
parent 7605f093ab
commit 02af024609
2 changed files with 14 additions and 6 deletions

View File

@ -89,12 +89,15 @@ let EditionContainer = React.createClass({
render() {
const { edition, currentUser, coaMeta } = this.state;
const { actionPanelButtonListType, furtherDetailsType } = this.props;
if (Object.keys(edition).length && edition.id && currentUser && currentUser.email) {
setDocumentTitle([edition.artist_name, edition.title].join(', '));
return (
<Edition
actionPanelButtonListType={this.props.actionPanelButtonListType}
furtherDetailsType={this.props.furtherDetailsType}
actionPanelButtonListType={actionPanelButtonListType}
furtherDetailsType={furtherDetailsType}
edition={edition}
coaError={coaMeta.err}
currentUser={currentUser}

View File

@ -17,13 +17,14 @@ import { setDocumentTitle } from '../utils/dom_utils';
let CoaVerifyContainer = React.createClass({
propTypes: {
location: React.PropTypes.object
},
render() {
const { message, signature } = this.props.location.query;
setDocumentTitle(getLangText('Verify your Certificate of Authenticity'));
return (
<div className="ascribe-login-wrapper">
<br/>
@ -31,7 +32,9 @@ let CoaVerifyContainer = React.createClass({
{getLangText('Verify your Certificate of Authenticity')}
</div>
<CoaVerifyForm location={this.props.location}/>
<CoaVerifyForm
message={message}
signature={signature}/>
<br />
<br />
{getLangText('ascribe is using the following public key for verification')}:
@ -52,7 +55,8 @@ let CoaVerifyContainer = React.createClass({
let CoaVerifyForm = React.createClass({
propTypes: {
location: React.PropTypes.object
message: React.PropTypes.string,
signature: React.PropTypes.string
},
handleSuccess(response){
@ -64,7 +68,8 @@ let CoaVerifyForm = React.createClass({
},
render() {
const {message, signature} = this.props.location.query;
const { message, signature } = this.props;
return (
<div>
<Form