1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

register piece transitions

This commit is contained in:
diminator 2015-07-01 11:21:43 +02:00
parent 2436e198db
commit 3e71926b7d
2 changed files with 7 additions and 4 deletions

View File

@ -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(){

View File

@ -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;