mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Add more context to delete modals (#69244)
This commit is contained in:
parent
7e924e0d74
commit
deb13ef611
@ -154,7 +154,15 @@ export const RuleActionsButtons = ({ rule, rulesSource }: Props) => {
|
|||||||
<ConfirmModal
|
<ConfirmModal
|
||||||
isOpen={true}
|
isOpen={true}
|
||||||
title="Delete rule"
|
title="Delete rule"
|
||||||
body="Deleting this rule will permanently remove it from your alert rule list. Are you sure you want to delete this rule?"
|
body={
|
||||||
|
<div>
|
||||||
|
<p>
|
||||||
|
Deleting "<strong>{ruleToDelete.name}</strong>" will permanently remove it from your alert
|
||||||
|
rule list.
|
||||||
|
</p>
|
||||||
|
<p>Are you sure you want to delete this rule?</p>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
confirmText="Yes, delete"
|
confirmText="Yes, delete"
|
||||||
icon="exclamation-triangle"
|
icon="exclamation-triangle"
|
||||||
onConfirm={deleteRule}
|
onConfirm={deleteRule}
|
||||||
|
@ -261,11 +261,11 @@ export const RulesGroup = React.memo(({ group, namespace, expandAll, viewMode }:
|
|||||||
title="Delete group"
|
title="Delete group"
|
||||||
body={
|
body={
|
||||||
<div>
|
<div>
|
||||||
Deleting this group will permanently remove the group
|
<p>
|
||||||
<br />
|
Deleting "<strong>{group.name}</strong>" will permanently remove the group and{' '}
|
||||||
and {group.rules.length} alert {pluralize('rule', group.rules.length)} belonging to it.
|
{group.rules.length} alert {pluralize('rule', group.rules.length)} belonging to it.
|
||||||
<br />
|
</p>
|
||||||
Are you sure you want to delete this group?
|
<p>Are you sure you want to delete this group?</p>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
onConfirm={deleteGroup}
|
onConfirm={deleteGroup}
|
||||||
|
Loading…
Reference in New Issue
Block a user