partner can only see and not edit network provider and external ems
This commit is contained in:
parent
b0bcf06d4e
commit
be264c2165
|
|
@ -686,7 +686,7 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
||||||
onInputChange={(_e, val) =>
|
onInputChange={(_e, val) =>
|
||||||
setFormValues({ ...formValues, networkProvider: val || '' })
|
setFormValues({ ...formValues, networkProvider: val || '' })
|
||||||
}
|
}
|
||||||
disabled={!canEdit && !isPartner}
|
disabled={!canEdit}
|
||||||
loading={loadingProviders}
|
loading={loadingProviders}
|
||||||
renderInput={(params) => (
|
renderInput={(params) => (
|
||||||
<TextField
|
<TextField
|
||||||
|
|
@ -736,7 +736,7 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
||||||
const val = e.target.value as string;
|
const val = e.target.value as string;
|
||||||
setFormValues({ ...formValues, externalEms: val });
|
setFormValues({ ...formValues, externalEms: val });
|
||||||
}}
|
}}
|
||||||
inputProps={{ readOnly: !canEdit && !isPartner }}
|
inputProps={{ readOnly: !canEdit }}
|
||||||
>
|
>
|
||||||
<MenuItem value="No"><FormattedMessage id="emsNo" defaultMessage="No" /></MenuItem>
|
<MenuItem value="No"><FormattedMessage id="emsNo" defaultMessage="No" /></MenuItem>
|
||||||
<MenuItem value="Solar Manager">Solar Manager</MenuItem>
|
<MenuItem value="Solar Manager">Solar Manager</MenuItem>
|
||||||
|
|
@ -757,7 +757,7 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
fullWidth
|
fullWidth
|
||||||
inputProps={{ readOnly: !canEdit && !isPartner }}
|
inputProps={{ readOnly: !canEdit }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue