mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Refresh feature list immediately on create.
This commit is contained in:
parent
6f65af5c47
commit
0e01c89260
@ -48,6 +48,7 @@ var FeatureTogglesComponent = React.createClass({
|
||||
|
||||
updateFeature: function (feature) {
|
||||
this.stopFeaturePoller();
|
||||
|
||||
this.state.featureStore
|
||||
.updateFeature(feature)
|
||||
.then(this.startFeaturePoller)
|
||||
@ -65,8 +66,12 @@ var FeatureTogglesComponent = React.createClass({
|
||||
},
|
||||
|
||||
createFeature: function (feature) {
|
||||
this.state.featureStore.createFeature(feature)
|
||||
this.stopFeaturePoller();
|
||||
|
||||
this.state.featureStore
|
||||
.createFeature(feature)
|
||||
.then(this.cancelNewFeature)
|
||||
.then(this.startFeaturePoller)
|
||||
.catch(this.handleError);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user