mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
parent
9438465bfd
commit
90e9606d37
@ -2,6 +2,7 @@ import { connect } from 'react-redux';
|
|||||||
import { fetchArchive, revive } from './../../store/archive/actions';
|
import { fetchArchive, revive } from './../../store/archive/actions';
|
||||||
import ViewToggleComponent from './../feature/view/view-component';
|
import ViewToggleComponent from './../feature/view/view-component';
|
||||||
import { hasPermission } from '../../permissions';
|
import { hasPermission } from '../../permissions';
|
||||||
|
import { fetchTags } from '../../store/feature-tags/actions';
|
||||||
|
|
||||||
export default connect(
|
export default connect(
|
||||||
(state, props) => ({
|
(state, props) => ({
|
||||||
@ -10,11 +11,14 @@ export default connect(
|
|||||||
.get('list')
|
.get('list')
|
||||||
.toArray()
|
.toArray()
|
||||||
.find(toggle => toggle.name === props.featureToggleName),
|
.find(toggle => toggle.name === props.featureToggleName),
|
||||||
|
tagTypes: state.tagTypes.toJS(),
|
||||||
|
featureTags: state.featureTags.toJS(),
|
||||||
activeTab: props.activeTab,
|
activeTab: props.activeTab,
|
||||||
hasPermission: hasPermission.bind(null, state.user.get('profile')),
|
hasPermission: hasPermission.bind(null, state.user.get('profile')),
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
fetchArchive,
|
fetchArchive,
|
||||||
revive,
|
revive,
|
||||||
|
fetchTags,
|
||||||
}
|
}
|
||||||
)(ViewToggleComponent);
|
)(ViewToggleComponent);
|
||||||
|
Loading…
Reference in New Issue
Block a user