Skip to content

Commit

Permalink
Fixes #24487: Missing icon in the rule creation page
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaadF committed Apr 7, 2024
1 parent 0d41d02 commit 482474f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ editionTemplate model details =
originRule = details.originRule

rule = details.rule
policyModTitle =
case originRule of
Nothing -> div [][]
Just _ -> badgePolicyMode model.policyMode rule.policyMode
(ruleTitle, isNewRule) = case originRule of
Nothing -> (span[style "opacity" "0.4"][text "New rule"], True)
Just r -> (text r.name, False)
Expand Down Expand Up @@ -175,7 +179,7 @@ editionTemplate model details =
[ div [class "main-header "]
[ div [class "header-title"]
[ h1[class classDisabled]
[ badgePolicyMode model.policyMode rule.policyMode
[ policyModTitle
, ruleTitle
, badgeDisabled
]
Expand Down

0 comments on commit 482474f

Please sign in to comment.