Change 'Deck ID' to 'Play Code' to match the terminology Cardcast uses.
This commit is contained in:
@@ -129,7 +129,7 @@ update action global data = case action of
|
||||
|
||||
addDeckErrorHandler : API.AddDeckError -> Action
|
||||
addDeckErrorHandler error = case error of
|
||||
API.DeckNotFound -> SetInputError "deckId" (Just "The given deck doesn't exist, check the id is correct.")
|
||||
API.DeckNotFound -> SetInputError "deckId" (Just "The given deck doesn't exist, check the play code is correct.")
|
||||
API.CardCastTimeout -> SetInputError "deckId" (Just "We couldn't get a response from CardCast. Try again later.")
|
||||
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ deckIdInput address deckIdValue error =
|
||||
[ div [ class "mui-textfield" ]
|
||||
[ input
|
||||
[ type' "text"
|
||||
, placeholder "Deck Id"
|
||||
, placeholder "Play Code"
|
||||
, on "input" targetValue (\deckId -> Signal.message address (UpdateInputValue "deckId" deckId))
|
||||
, onKeyUp address (\key -> case key of
|
||||
13 -> AddDeck {- Return key. -}
|
||||
@@ -73,7 +73,7 @@ deckIdInput address deckIdValue error =
|
||||
, label [] [ icon "info-circle"
|
||||
, text " A "
|
||||
, a [ href "https://www.cardcastgame.com/browse", target "_blank" ] [ text "CardCast" ]
|
||||
, text " Deck Id"
|
||||
, text " Play Code"
|
||||
]
|
||||
]
|
||||
, addDeckButton address (not (String.isEmpty deckIdValue))
|
||||
|
||||
Reference in New Issue
Block a user