mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
fix: move feature-toggle store into folder
This commit is contained in:
parent
f42dce509c
commit
92f9fdc50e
@ -1,7 +1,7 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { createFeatureToggles, validateName } from '../../../store/feature-actions';
|
||||
import { createFeatureToggles, validateName } from '../../../store/feature-toggle/actions';
|
||||
import AddFeatureComponent from './add-feature-component';
|
||||
import { loadNameFromHash } from '../../common/util';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux';
|
||||
import CopyFeatureComponent from './copy-feature-component';
|
||||
import { createFeatureToggles, validateName, fetchFeatureToggles } from '../../../store/feature-actions';
|
||||
import { createFeatureToggles, validateName, fetchFeatureToggles } from '../../../store/feature-toggle/actions';
|
||||
|
||||
const mapStateToProps = (state, props) => ({
|
||||
history: props.history,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { toggleFeature, fetchFeatureToggles } from '../../../store/feature-actions';
|
||||
import { toggleFeature, fetchFeatureToggles } from '../../../store/feature-toggle/actions';
|
||||
import { updateSettingForGroup } from '../../../store/settings/actions';
|
||||
|
||||
import FeatureListComponent from './list-component';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { requestUpdateFeatureToggleVariants } from '../../../store/feature-actions';
|
||||
import { requestUpdateFeatureToggleVariants } from '../../../store/feature-toggle/actions';
|
||||
import UpdateFeatureToggleComponent from './update-variant-component';
|
||||
import { updateWeight } from '../../common/util';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
import { connect } from 'react-redux';
|
||||
import arrayMove from 'array-move';
|
||||
|
||||
import { requestUpdateFeatureToggleStrategies } from '../../../store/feature-actions';
|
||||
import { requestUpdateFeatureToggleStrategies } from '../../../store/feature-toggle/actions';
|
||||
import UpdateStrategiesComponent from './update-strategies-component';
|
||||
|
||||
const mapStateToProps = (state, ownProps) => ({
|
||||
|
@ -7,7 +7,7 @@ import {
|
||||
setStale,
|
||||
removeFeatureToggle,
|
||||
editFeatureToggle,
|
||||
} from './../../../store/feature-actions';
|
||||
} from './../../../store/feature-toggle/actions';
|
||||
|
||||
import ViewToggleComponent from './view-component';
|
||||
import { hasPermission } from '../../../permissions';
|
||||
|
@ -2,7 +2,7 @@ import { connect } from 'react-redux';
|
||||
import ShowStrategy from './strategy-details-component';
|
||||
import { fetchStrategies } from './../../store/strategy/actions';
|
||||
import { fetchAll } from './../../store/application/actions';
|
||||
import { fetchFeatureToggles } from './../../store/feature-actions';
|
||||
import { fetchFeatureToggles } from './../../store/feature-toggle/actions';
|
||||
import { hasPermission } from '../../permissions';
|
||||
|
||||
const mapStateToProps = (state, props) => {
|
||||
|
@ -7,7 +7,7 @@ import {
|
||||
ERROR_UPDATE_FEATURE_TOGGLE,
|
||||
UPDATE_FEATURE_TOGGLE_STRATEGIES,
|
||||
UPDATE_FEATURE_TOGGLE,
|
||||
} from '../feature-actions';
|
||||
} from '../feature-toggle/actions';
|
||||
|
||||
import { ERROR_UPDATING_STRATEGY, ERROR_CREATING_STRATEGY, ERROR_RECEIVE_STRATEGIES } from '../strategy/actions';
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import api from '../data/feature-api';
|
||||
import api from '../../data/feature-api';
|
||||
const debug = require('debug')('unleash:feature-actions');
|
||||
import { dispatchAndThrow } from './util';
|
||||
import { MUTE_ERROR } from './error/actions';
|
||||
import { dispatchAndThrow } from '../util';
|
||||
import { MUTE_ERROR } from '../error/actions';
|
||||
|
||||
export const ADD_FEATURE_TOGGLE = 'ADD_FEATURE_TOGGLE';
|
||||
export const COPY_FEATURE_TOGGLE = 'COPY_FEATURE_TOGGLE';
|
@ -9,9 +9,9 @@ import {
|
||||
UPDATE_FEATURE_TOGGLE_STRATEGIES,
|
||||
REMOVE_FEATURE_TOGGLE,
|
||||
TOGGLE_FEATURE_TOGGLE,
|
||||
} from './feature-actions';
|
||||
} from './actions';
|
||||
|
||||
import { USER_LOGOUT, USER_LOGIN } from './user/actions';
|
||||
import { USER_LOGOUT, USER_LOGIN } from '../user/actions';
|
||||
|
||||
const features = (state = new List([]), action) => {
|
||||
switch (action.type) {
|
@ -1,5 +1,5 @@
|
||||
import { combineReducers } from 'redux';
|
||||
import features from './feature-store';
|
||||
import features from './feature-toggle';
|
||||
import featureTypes from './feature-type';
|
||||
import featureMetrics from './feature-metrics-store';
|
||||
import strategies from './strategy';
|
||||
|
Loading…
Reference in New Issue
Block a user