summaryrefslogtreecommitdiff
path: root/elm/Lib/ExtLinks.elm
diff options
context:
space:
mode:
Diffstat (limited to 'elm/Lib/ExtLinks.elm')
-rw-r--r--elm/Lib/ExtLinks.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Lib/ExtLinks.elm b/elm/Lib/ExtLinks.elm
index a86c3634..c2a48598 100644
--- a/elm/Lib/ExtLinks.elm
+++ b/elm/Lib/ExtLinks.elm
@@ -102,7 +102,7 @@ view model = Html.form [ onSubmit Enter ]
(_, Unrecognized) -> b [ class "standout" ] [ br [] [], text "Invalid or unrecognized URL." ]
(_, Duplicate) -> b [ class "standout" ] [ br [] [], text "URL is already listed." ]
(_, Add (s, _)) -> span []
- [ inputButton (if s.multi then "Add" else "Edit") Enter []
+ [ inputButton (if s.multi || List.isEmpty (s.links model.links) then "Add" else "Edit") Enter []
, br [] [], text <| "URL recognized as: " ++ s.name
]
]