Skip to content

Commit

Permalink
Added description for Controller fabric label: #297
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 9, 2025
1 parent 5b29734 commit 93a0152
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src-admin/src/Tabs/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ class Options extends Component<OptionsProps, OptionsState> {

<div style={{ marginTop: 50 }}>
<Typography sx={styles.header}>{I18n.t('Controller Settings')}</Typography>
<InfoBox type="info">
{I18n.t(
'The label set here is used as Label when ioBroker connects to a device as device and might be shown by other Controllers in their overviews about other connected ecosystems.',
)}
</InfoBox>
<TextField
variant="standard"
label={I18n.t('Controller fabric label')}
Expand All @@ -582,6 +587,9 @@ class Options extends Component<OptionsProps, OptionsState> {
onChange={e => this.props.onChange('controllerFabricLabel', e.target.value)}
margin="normal"
slotProps={{
htmlInput: {
maxLength: 32,
},
input: {
endAdornment: this.props.native.controllerFabricLabel ? (
<IconButton
Expand All @@ -593,7 +601,11 @@ class Options extends Component<OptionsProps, OptionsState> {
) : null,
},
}}
style={styles.input}
helperText={I18n.t('Max 32 characters')}
style={{
...styles.input,
maxWidth: 350,
}}
/>
</div>

Expand Down

0 comments on commit 93a0152

Please sign in to comment.