Commit 4ace89b4 authored by Roman's avatar Roman

BRCD-1676 feat(Play) - disable edit play in edit mode

parent 57067165
......@@ -307,6 +307,7 @@ class Subscription extends Component {
renderSystemFields = (editable) => {
const { subscription } = this.state;
const { mode } = this.props;
const plansOptions = this.getAvailablePlans().toJS();
const servicesOptions = this.getAvailableServices().toJS();
const services = subscription.get('services', Immutable.List()) || Immutable.List();
......@@ -315,7 +316,7 @@ class Subscription extends Component {
return ([
(<PlaysSelector
entity={subscription}
editable={editable}
editable={editable && mode === 'create'}
mandatory={true}
onChange={this.onChangePlay}
/>),
......
......@@ -185,7 +185,7 @@ export default class Plan extends Component {
<PlaysSelector
entity={plan}
editable={editable}
editable={editable && mode === 'create'}
multi={true}
onChange={this.onChangePlays}
/>
......
......@@ -236,7 +236,7 @@ class Product extends Component {
<PlaysSelector
entity={product}
editable={editable}
editable={editable && mode === 'create'}
onChange={this.onChangePlay}
/>
......
......@@ -113,7 +113,7 @@ export default class ServiceDetails extends Component {
<PlaysSelector
entity={item}
editable={editable}
editable={editable && mode === 'create'}
multi={true}
onChange={this.onChangePlays}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment