Commit ce148b6e authored by jcaro's avatar jcaro Committed by Jordan CARO
Browse files

Add checkboxs for persistent and sticky option for ACK (#11023)

parent 521092ae
...@@ -20,6 +20,8 @@ import { ...@@ -20,6 +20,8 @@ import {
labelNotify, labelNotify,
labelNotifyHelpCaption, labelNotifyHelpCaption,
labelAcknowledgeServices, labelAcknowledgeServices,
labelSticky,
labelPersistent,
} from '../../../translatedLabels'; } from '../../../translatedLabels';
import { Resource } from '../../../models'; import { Resource } from '../../../models';
import useAclQuery from '../aclQuery'; import useAclQuery from '../aclQuery';
...@@ -101,6 +103,34 @@ const DialogAcknowledge = ({ ...@@ -101,6 +103,34 @@ const DialogAcknowledge = ({
/> />
<FormHelperText>{t(labelNotifyHelpCaption)}</FormHelperText> <FormHelperText>{t(labelNotifyHelpCaption)}</FormHelperText>
</Grid> </Grid>
<Grid item>
<FormControlLabel
control={
<Checkbox
checked={values.isSticky}
color="primary"
inputProps={{ 'aria-label': t(labelSticky) }}
size="small"
onChange={handleChange('isSticky')}
/>
}
label={t(labelSticky) as string}
/>
</Grid>
<Grid item>
<FormControlLabel
control={
<Checkbox
checked={values.persistent}
color="primary"
inputProps={{ 'aria-label': t(labelPersistent) }}
size="small"
onChange={handleChange('persistent')}
/>
}
label={t(labelPersistent) as string}
/>
</Grid>
{hasHosts && ( {hasHosts && (
<Grid item> <Grid item>
<FormControlLabel <FormControlLabel
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment