Skip to content

Commit

Permalink
feat(add repo alert): add alert for successfully adding a repo (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 authored and wass3r committed Nov 14, 2019
1 parent 444c111 commit 7a949fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/elm/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 7a949fc

Please sign in to comment.