partner can only see and not edit network provider and external ems

This commit is contained in:
Yinyin Liu 2026-03-28 17:28:51 +01:00
parent b0bcf06d4e
commit be264c2165
1 changed files with 3 additions and 3 deletions

View File

@ -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>
)}