mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-18 00:19:49 +01:00
Refresh feature list immediately on create.
This commit is contained in:
parent
89dddae4b1
commit
a99e0df101
@ -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