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
|
||||
isOpen={true}
|
||||
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"
|
||||
icon="exclamation-triangle"
|
||||
onConfirm={deleteRule}
|
||||
|
@ -261,11 +261,11 @@ export const RulesGroup = React.memo(({ group, namespace, expandAll, viewMode }:
|
||||
title="Delete group"
|
||||
body={
|
||||
<div>
|
||||
Deleting this group will permanently remove the group
|
||||
<br />
|
||||
and {group.rules.length} alert {pluralize('rule', group.rules.length)} belonging to it.
|
||||
<br />
|
||||
Are you sure you want to delete this group?
|
||||
<p>
|
||||
Deleting "<strong>{group.name}</strong>" will permanently remove the group and{' '}
|
||||
{group.rules.length} alert {pluralize('rule', group.rules.length)} belonging to it.
|
||||
</p>
|
||||
<p>Are you sure you want to delete this group?</p>
|
||||
</div>
|
||||
}
|
||||
onConfirm={deleteGroup}
|
||||
|
Loading…
Reference in New Issue
Block a user