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

Fix edition deletion redirect

This commit is contained in:
Tim Daubenschütz 2015-10-22 13:21:07 +02:00
parent 68a6c70931
commit ef14fc9b2e

View File

@ -1,7 +1,7 @@
'use strict';
import React from 'react';
import Router from 'react-router';
import { History } from 'react-router';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
@ -39,7 +39,7 @@ let EditionActionPanel = React.createClass({
handleSuccess: React.PropTypes.func
},
mixins: [Router.Navigation],
mixins: [History],
getInitialState() {
return PieceListStore.getState();
@ -66,7 +66,7 @@ let EditionActionPanel = React.createClass({
let notification = new GlobalNotificationModel(response.notification, 'success');
GlobalNotificationActions.appendGlobalNotification(notification);
this.transitionTo('pieces');
this.history.pushState('/collection');
},
refreshCollection() {