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) =>
|
||||
setFormValues({ ...formValues, networkProvider: val || '' })
|
||||
}
|
||||
disabled={!canEdit && !isPartner}
|
||||
disabled={!canEdit}
|
||||
loading={loadingProviders}
|
||||
renderInput={(params) => (
|
||||
<TextField
|
||||
|
|
@ -736,7 +736,7 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
|||
const val = e.target.value as string;
|
||||
setFormValues({ ...formValues, externalEms: val });
|
||||
}}
|
||||
inputProps={{ readOnly: !canEdit && !isPartner }}
|
||||
inputProps={{ readOnly: !canEdit }}
|
||||
>
|
||||
<MenuItem value="No"><FormattedMessage id="emsNo" defaultMessage="No" /></MenuItem>
|
||||
<MenuItem value="Solar Manager">Solar Manager</MenuItem>
|
||||
|
|
@ -757,7 +757,7 @@ function InformationSodistorehome(props: InformationSodistorehomeProps) {
|
|||
onChange={handleChange}
|
||||
variant="outlined"
|
||||
fullWidth
|
||||
inputProps={{ readOnly: !canEdit && !isPartner }}
|
||||
inputProps={{ readOnly: !canEdit }}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue