aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/LoggedIn/Income/View
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/elm/LoggedIn/Income/View')
-rw-r--r--src/client/elm/LoggedIn/Income/View/Table.elm22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/client/elm/LoggedIn/Income/View/Table.elm b/src/client/elm/LoggedIn/Income/View/Table.elm
index cf82772..dcf6d78 100644
--- a/src/client/elm/LoggedIn/Income/View/Table.elm
+++ b/src/client/elm/LoggedIn/Income/View/Table.elm
@@ -49,7 +49,7 @@ view loggedData incomeModel =
then
div
[ class "emptyTableMsg" ]
- [ text <| getMessage "NoPayment" loggedData.translations ]
+ [ text <| getMessage loggedData.translations "NoPayment" ]
else
text ""
]
@@ -58,9 +58,9 @@ headerLine : LoggedData -> Html Msg
headerLine loggedData =
div
[ class "header" ]
- [ div [ class "cell name" ] [ text <| getMessage "Name" loggedData.translations ]
- , div [ class "cell income" ] [ text <| getMessage "Income" loggedData.translations ]
- , div [ class "cell date" ] [ text <| getMessage "Date" loggedData.translations ]
+ [ div [ class "cell name" ] [ text <| getMessage loggedData.translations "Name" ]
+ , div [ class "cell income" ] [ text <| getMessage loggedData.translations "Income" ]
+ , div [ class "cell date" ] [ text <| getMessage loggedData.translations "Date" ]
, div [ class "cell" ] []
, div [ class "cell" ] []
, div [ class "cell" ] []
@@ -92,7 +92,7 @@ paymentLine loggedData incomeModel (incomeId, income) =
(AddIncome.initialClone loggedData.translations currentDate income)
"CloneIncome"
(FontAwesome.clone Color.chestnutRose 18)
- (Just (getMessage "Clone" loggedData.translations))
+ (Just (getMessage loggedData.translations "Clone"))
]
, div
[ class "cell button" ]
@@ -106,7 +106,7 @@ paymentLine loggedData incomeModel (incomeId, income) =
(AddIncome.initialEdit loggedData.translations incomeId income)
"EditIncome"
(FontAwesome.pencil Color.chestnutRose 18)
- (Just (getMessage "Edit" loggedData.translations))
+ (Just (getMessage loggedData.translations "Edit"))
]
, div
[ class "cell button" ]
@@ -116,14 +116,14 @@ paymentLine loggedData incomeModel (incomeId, income) =
else
let dialogConfig =
{ className = "deleteIncomeDialog"
- , title = getMessage "ConfirmIncomeDelete" loggedData.translations
+ , title = getMessage loggedData.translations "ConfirmIncomeDelete"
, body = always <| text ""
- , confirm = getMessage "Confirm" loggedData.translations
- , confirmMsg = always <| Msg.Dialog <| Dialog.UpdateAndClose <| Msg.UpdateLoggedIn <| LoggedInMsg.DeleteIncome incomeId
- , undo = getMessage "Undo" loggedData.translations
+ , confirm = getMessage loggedData.translations "Confirm"
+ , confirmMsg = always <| Msg.Dialog <| Dialog.UpdateAndClose <| Msg.DeleteIncome incomeId
+ , undo = getMessage loggedData.translations "Undo"
}
in button
- ( Tooltip.show Msg.Tooltip (getMessage "Delete" loggedData.translations)
+ ( Tooltip.show Msg.Tooltip (getMessage loggedData.translations "Delete")
++ [ onClick (Msg.Dialog <| Dialog.Open dialogConfig) ]
)
[ FontAwesome.trash Color.chestnutRose 18 ]