diff --git a/js/components/register_piece.js b/js/components/register_piece.js index 5ae5fa57..c59296e9 100644 --- a/js/components/register_piece.js +++ b/js/components/register_piece.js @@ -50,10 +50,10 @@ let RegisterPiece = React.createClass( { this.setState(state); }, - handleSuccess(){ - let notification = new GlobalNotificationModel('Piece successfully registered', 'success', 10000); + handleSuccess(response){ + let notification = new GlobalNotificationModel(response.notification, 'success', 10000); GlobalNotificationActions.appendGlobalNotification(notification); - this.transitionTo('pieces'); + this.transitionTo('edition', {editionId: response.edition.bitcoin_id}); }, getFormData(){ diff --git a/sass/main.scss b/sass/main.scss index 4b7230bb..570bdff4 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -97,7 +97,10 @@ body { margin-right: 0; margin-left: 0; } - +.btn-delete{ + background-color: rgba(0,0,0,0); + color: #888; +} .btn-ascribe, .btn-ascribe-inv { border: 1px solid #444; line-height: 2em;