Change 'Deck ID' to 'Play Code' to match the terminology Cardcast uses.

This commit is contained in:
Gareth Latty
2015-12-21 16:21:29 +00:00
parent 263e42fde0
commit aba08f7110
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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.")
+2 -2
View File
@@ -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))