var React = require("react"); var FeatureActions = require('../../stores/FeatureToggleActions'); var FeatureToggleStore = require('../../stores/FeatureToggleStore'); var ArchiveFeatureComponent = React.createClass({ getInitialState: function() { return { archivedFeatures: FeatureToggleStore.getArchivedToggles() }; }, onStoreChange: function() { this.setState({ archivedFeatures: FeatureToggleStore.getArchivedToggles() }); }, componentDidMount: function() { this.unsubscribe = FeatureToggleStore.listen(this.onStoreChange); }, componentWillUnmount: function() { this.unsubscribe(); }, onRevive: function(item) { FeatureActions.revive(item); }, render: function () { return (
Name |
---|