mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
Last minute editions for usability
This commit is contained in:
parent
633ebc8fb9
commit
1c172fd887
@ -107,8 +107,9 @@ const PRRegisterPieceForm = React.createClass({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => this.history.pushState(null, `/pieces/${this.state.piece.id}`))
|
.then(() => this.history.pushState(null, `/pieces/${this.state.piece.id}`))
|
||||||
.catch((err) => {
|
.catch(() => {
|
||||||
console.log(err);
|
const notificationMessage = new GlobalNotificationModel(getLangText("Ups! We weren't able to send your submission. Contact: support@ascribe.io"), 'danger', 5000);
|
||||||
|
GlobalNotificationActions.appendGlobalNotification(notificationMessage);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -2,14 +2,36 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
import UserStore from '../../../../../stores/user_store';
|
||||||
|
import UserActions from '../../../../../actions/user_actions';
|
||||||
|
|
||||||
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
|
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
|
||||||
|
|
||||||
|
|
||||||
const PRHero = React.createClass({
|
const PRHero = React.createClass({
|
||||||
|
getInitialState() {
|
||||||
|
return UserStore.getState();
|
||||||
|
},
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
UserStore.listen(this.onChange);
|
||||||
|
UserActions.fetchCurrentUser();
|
||||||
|
},
|
||||||
|
|
||||||
|
componentWillUnmount() {
|
||||||
|
UserStore.unlisten(this.onChange);
|
||||||
|
},
|
||||||
|
|
||||||
|
onChange(state) {
|
||||||
|
this.setState(state);
|
||||||
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const { currentUser } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="piece--hero">
|
<div className="piece--hero">
|
||||||
<h2><Glyphicon glyph="ok" /> Congratulations!</h2>
|
<h2><Glyphicon glyph="ok" /> Congratulations {currentUser.email}!</h2>
|
||||||
<h1>You have successfully submitted to Portfolio Review 2016</h1>
|
<h1>You have successfully submitted to Portfolio Review 2016</h1>
|
||||||
<p>See below, your uploaded portfolio:</p>
|
<p>See below, your uploaded portfolio:</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,7 +62,7 @@ const PRRegisterPiece = React.createClass({
|
|||||||
<Col xs={6}>
|
<Col xs={6}>
|
||||||
<div className="register-piece--info">
|
<div className="register-piece--info">
|
||||||
<h1>Portfolio Review</h1>
|
<h1>Portfolio Review</h1>
|
||||||
<h2>{getLangText('Submission closing on %s', ' 21 Dec 2015')}</h2>
|
<h2>{getLangText('Submission closing on %s', ' 22 Dec 2015')}</h2>
|
||||||
<p style={{marginTop: '1em'}}>
|
<p style={{marginTop: '1em'}}>
|
||||||
{getLangText("You're submitting as %s. ", currentUser.email)}
|
{getLangText("You're submitting as %s. ", currentUser.email)}
|
||||||
<Link to="/logout">{getLangText('Change account?')}</Link>
|
<Link to="/logout">{getLangText('Change account?')}</Link>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user