Merge pull request #994 from Conorbro/count-affected-alerts

Show total number of silenced alerts in preview
This commit is contained in:
Conor Broderick 2017-09-14 15:32:37 +01:00 committed by GitHub
commit ee76b92cb9
2 changed files with 6 additions and 6 deletions

View File

@ -1,11 +1,11 @@
module Views.Shared.SilencePreview exposing (view)
import Alerts.Types exposing (Alert)
import Html exposing (Html, div, text, strong, p)
import Html exposing (Html, div, p, strong, text)
import Html.Attributes exposing (class)
import Utils.Types exposing (ApiData(Initial, Success, Loading, Failure))
import Views.Shared.AlertListCompact
import Utils.Types exposing (ApiData(Failure, Initial, Loading, Success))
import Utils.Views exposing (loading)
import Views.Shared.AlertListCompact
view : ApiData (List Alert) -> Html msg
@ -17,7 +17,7 @@ view alertsResponse =
[ p [] [ strong [] [ text "No silenced alerts" ] ] ]
else
div [ class "w-100" ]
[ p [] [ strong [] [ text "Silenced alerts:" ] ]
[ p [] [ strong [] [ text ("Silenced alerts: " ++ toString (List.length alerts)) ] ]
, Views.Shared.AlertListCompact.view alerts
]

File diff suppressed because one or more lines are too long