Add tooltip to retain checkbox

This commit is contained in:
Thomas Nordquist
2019-01-20 14:57:10 +01:00
parent 1ac1dede98
commit fa24fa9abb

View File

@@ -237,13 +237,15 @@ class Publish extends React.Component<Props, State> {
label="QoS" label="QoS"
labelPlacement="start" labelPlacement="start"
/> />
<FormControlLabel <Tooltip title="Retained messages only appear to be retained, when client subscribes after the initial publish." placement="top">
value="retain" <FormControlLabel
style={labelStyle} value="retain"
control={<Checkbox color="primary" checked={this.props.retain} onChange={this.props.actions.toggleRetain} />} style={labelStyle}
label="retain" control={<Checkbox color="primary" checked={this.props.retain} onChange={this.props.actions.toggleRetain} />}
labelPlacement="end" label="retain"
/> labelPlacement="end"
/>
</Tooltip>
</div> </div>
</div> </div>
) )