1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 05:31:58 +02:00

update piece list after piece registration

This commit is contained in:
Tim Daubenschütz 2015-07-01 16:21:49 +02:00
parent 740f506ced
commit d0b8610050

View File

@ -56,12 +56,11 @@ let RegisterPiece = React.createClass( {
},
handleSuccess(){
let notification = new GlobalNotificationModel('Login successsful', 'success', 10000);
let notification = new GlobalNotificationModel('Piece registration successful', 'success', 10000);
GlobalNotificationActions.appendGlobalNotification(notification);
// once the user was able to register a piece successfully, we need to make sure to keep
// the piece list up to date
//console.log(this.state);
PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.searchTerm, this.state.orderBy, this.state.orderAsc);
this.transitionTo('pieces');