aboutsummaryrefslogtreecommitdiff
path: root/src/client/Update.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Update.elm')
-rw-r--r--src/client/Update.elm12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/Update.elm b/src/client/Update.elm
index 910f080..d643d4e 100644
--- a/src/client/Update.elm
+++ b/src/client/Update.elm
@@ -12,7 +12,7 @@ import Model.Payment exposing (Payments)
import Model.Payers exposing (Payers)
import Model.View as V
import Model.View.SignInView exposing (..)
-import Model.View.PaymentView exposing (..)
+import Model.View.LoggedView exposing (..)
import Update.SignIn exposing (..)
import Update.Payment exposing (..)
@@ -23,7 +23,7 @@ type Action =
| GoSignInView
| SignInError String
| UpdateSignIn SignInAction
- | GoPaymentView Users UserId Payments Int Payers
+ | GoLoggedView Users UserId Payments Int Payers
| UpdatePayment PaymentAction
actions : Signal.Mailbox Action
@@ -38,8 +38,8 @@ updateModel action model =
{ model | currentTime <- time }
GoSignInView ->
{ model | view <- V.SignInView initSignInView }
- GoPaymentView users me payments paymentsCount payers ->
- { model | view <- V.PaymentView (initPaymentView users me payments paymentsCount payers) }
+ GoLoggedView users me payments paymentsCount payers ->
+ { model | view <- V.LoggedView (initLoggedView users me payments paymentsCount payers) }
SignInError msg ->
let signInView = { initSignInView | result <- Just (Err msg) }
in { model | view <- V.SignInView signInView }
@@ -51,7 +51,7 @@ updateModel action model =
model
UpdatePayment paymentAction ->
case model.view of
- V.PaymentView paymentView ->
- { model | view <- V.PaymentView (updatePayment model paymentAction paymentView) }
+ V.LoggedView loggedView ->
+ { model | view <- V.LoggedView (updatePayment model paymentAction loggedView) }
_ ->
model