mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Merge pull request #234 from Unleash/fix-archived-toggles-tags
Fix missing methods for displaying tags on archived toggles
This commit is contained in:
commit
2d8b107b04
@ -2,6 +2,7 @@ import { connect } from 'react-redux';
|
||||
import { fetchArchive, revive } from './../../store/archive/actions';
|
||||
import ViewToggleComponent from './../feature/view/view-component';
|
||||
import { hasPermission } from '../../permissions';
|
||||
import { fetchTags } from '../../store/feature-tags/actions';
|
||||
|
||||
export default connect(
|
||||
(state, props) => ({
|
||||
@ -10,11 +11,14 @@ export default connect(
|
||||
.get('list')
|
||||
.toArray()
|
||||
.find(toggle => toggle.name === props.featureToggleName),
|
||||
tagTypes: state.tagTypes.toJS(),
|
||||
featureTags: state.featureTags.toJS(),
|
||||
activeTab: props.activeTab,
|
||||
hasPermission: hasPermission.bind(null, state.user.get('profile')),
|
||||
}),
|
||||
{
|
||||
fetchArchive,
|
||||
revive,
|
||||
fetchTags,
|
||||
}
|
||||
)(ViewToggleComponent);
|
||||
|
Loading…
Reference in New Issue
Block a user