mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-10 01:16:39 +02: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) {
|
updateFeature: function (feature) {
|
||||||
this.stopFeaturePoller();
|
this.stopFeaturePoller();
|
||||||
|
|
||||||
this.state.featureStore
|
this.state.featureStore
|
||||||
.updateFeature(feature)
|
.updateFeature(feature)
|
||||||
.then(this.startFeaturePoller)
|
.then(this.startFeaturePoller)
|
||||||
@ -65,8 +66,12 @@ var FeatureTogglesComponent = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
createFeature: function (feature) {
|
createFeature: function (feature) {
|
||||||
this.state.featureStore.createFeature(feature)
|
this.stopFeaturePoller();
|
||||||
|
|
||||||
|
this.state.featureStore
|
||||||
|
.createFeature(feature)
|
||||||
.then(this.cancelNewFeature)
|
.then(this.cancelNewFeature)
|
||||||
|
.then(this.startFeaturePoller)
|
||||||
.catch(this.handleError);
|
.catch(this.handleError);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user