Show total no. of silenced alerts in prev

This commit is contained in:
conorbroderick 2017-09-14 14:40:02 +01:00
parent f3cd3978db
commit 20e19e372c
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