From 56a0029b737800b809f35463ae540f22a3e4d055 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sat, 22 Oct 2016 16:35:49 +0200 Subject: [PATCH] UI for editing feature toggles --- .../component/feature/AddFeatureToggleUI.jsx | 4 +- .../component/feature/EditFeatureToggle.jsx | 65 +++++++++++++++---- .../src/component/feature/Feature.jsx | 4 +- .../src/page/features/edit.js | 6 +- 4 files changed, 63 insertions(+), 16 deletions(-) diff --git a/packages/unleash-frontend-next/src/component/feature/AddFeatureToggleUI.jsx b/packages/unleash-frontend-next/src/component/feature/AddFeatureToggleUI.jsx index 0fc10c51de..88239b25c2 100644 --- a/packages/unleash-frontend-next/src/component/feature/AddFeatureToggleUI.jsx +++ b/packages/unleash-frontend-next/src/component/feature/AddFeatureToggleUI.jsx @@ -13,6 +13,7 @@ class AddFeatureToggleUI extends React.Component { removeStrategy: PropTypes.func.required, onSubmit: PropTypes.func.required, onCancel: PropTypes.func.required, + editmode: PropTypes.bool, }; } @@ -26,6 +27,7 @@ class AddFeatureToggleUI extends React.Component { type="text" label="Name" name="name" + disabled={this.props.editmode} required value={this.props.featureToggle.name} onChange={this.props.updateField.bind(this, 'name')} /> @@ -62,7 +64,7 @@ class AddFeatureToggleUI extends React.Component {
-