From 3e71926b7df50454386164f908331d4fc84d1e1f Mon Sep 17 00:00:00 2001 From: diminator Date: Wed, 1 Jul 2015 11:21:43 +0200 Subject: [PATCH] register piece transitions --- js/components/register_piece.js | 6 +++--- sass/main.scss | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) 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;