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"
labelPlacement="start"
/>
<FormControlLabel
value="retain"
style={labelStyle}
control={<Checkbox color="primary" checked={this.props.retain} onChange={this.props.actions.toggleRetain} />}
label="retain"
labelPlacement="end"
/>
<Tooltip title="Retained messages only appear to be retained, when client subscribes after the initial publish." placement="top">
<FormControlLabel
value="retain"
style={labelStyle}
control={<Checkbox color="primary" checked={this.props.retain} onChange={this.props.actions.toggleRetain} />}
label="retain"
labelPlacement="end"
/>
</Tooltip>
</div>
</div>
)