mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-08 01:15:49 +02:00
* chore: update changelog * 4.0.0-alpha.4 * wip: frontend should understand rbac permissions * move all feature components to hasAccess * fix: remove all change permissions * fix all the tests * fix all the tests x2 * fix snapshot for node 12 * fine tune perms a bit * refactor: rewrite to ts * refactor: use admin constant * fix: import Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
24 lines
693 B
JavaScript
24 lines
693 B
JavaScript
import { connect } from 'react-redux';
|
|
import ApplicationEdit from './application-edit-component';
|
|
import { fetchApplication, storeApplicationMetaData, deleteApplication } from './../../store/application/actions';
|
|
|
|
const mapStateToProps = (state, props) => {
|
|
let application = state.applications.getIn(['apps', props.appName]);
|
|
const location = state.settings.toJS().location || {};
|
|
if (application) {
|
|
application = application.toJS();
|
|
}
|
|
return {
|
|
application,
|
|
location,
|
|
};
|
|
};
|
|
|
|
const Container = connect(mapStateToProps, {
|
|
fetchApplication,
|
|
storeApplicationMetaData,
|
|
deleteApplication,
|
|
})(ApplicationEdit);
|
|
|
|
export default Container;
|