From aba08f7110813fa2d29f2abd699ebcbf6baabcb2 Mon Sep 17 00:00:00 2001 From: Gareth Latty Date: Mon, 21 Dec 2015 16:21:29 +0000 Subject: [PATCH] Change 'Deck ID' to 'Play Code' to match the terminology Cardcast uses. --- client/src/MassiveDecks/States/Config.elm | 2 +- client/src/MassiveDecks/States/Config/UI.elm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/MassiveDecks/States/Config.elm b/client/src/MassiveDecks/States/Config.elm index d3c3cd6..93f6ace 100644 --- a/client/src/MassiveDecks/States/Config.elm +++ b/client/src/MassiveDecks/States/Config.elm @@ -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.") diff --git a/client/src/MassiveDecks/States/Config/UI.elm b/client/src/MassiveDecks/States/Config/UI.elm index 8517026..e736042 100644 --- a/client/src/MassiveDecks/States/Config/UI.elm +++ b/client/src/MassiveDecks/States/Config/UI.elm @@ -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))