mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
update piece list after piece registration
This commit is contained in:
parent
740f506ced
commit
d0b8610050
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user