From 7a949fcc0398f5ac30377fed28a57d7ac08979a5 Mon Sep 17 00:00:00 2001 From: David Vader <48764154+davidvader@users.noreply.github.com> Date: Thu, 14 Nov 2019 10:55:24 -0600 Subject: [PATCH] feat(add repo alert): add alert for successfully adding a repo (#19) --- src/elm/Main.elm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/elm/Main.elm b/src/elm/Main.elm index 895a73a1c..5384e99c0 100644 --- a/src/elm/Main.elm +++ b/src/elm/Main.elm @@ -317,6 +317,7 @@ update msg model = case response of Ok ( _, addedRepo ) -> ( { model | sourceRepos = updateSourceRepoStatus addedRepo (RemoteData.succeed True) model.sourceRepos updateSourceRepoListByRepoName }, Cmd.none ) + |> Alerting.addToastIfUnique Alerts.config AlertsUpdate (Alerts.Success "Success" (repo.full_name ++ " added.") Nothing) Err error -> ( { model | sourceRepos = updateSourceRepoStatus repo (toFailure error) model.sourceRepos updateSourceRepoListByRepoName }, addError error )