Skip to content

Commit

Permalink
Added back the label description: #297
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 14, 2025
1 parent 42e199b commit 6c1529e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src-admin/src/Tabs/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,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 controller 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 @@ -253,6 +258,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 @@ -264,7 +272,10 @@ class Options extends Component<OptionsProps, OptionsState> {
) : null,
},
}}
style={styles.input}
style={{
...styles.input,
maxWidth: 350,
}}
/>
</div>

Expand Down

0 comments on commit 6c1529e

Please sign in to comment.