From 442fbd2888d41ffc293bc4680a9dca02906be2fe Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Fri, 13 Jul 2018 17:15:38 +0000 Subject: [PATCH] Updating the Web UI to support the SIM exchange. --- src/web/ui/src/Access.fs | 7 +++---- src/web/ui/src/Accounts/State.fs | 2 +- src/web/ui/src/Users/State.fs | 4 ++++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/web/ui/src/Access.fs b/src/web/ui/src/Access.fs index 5bd93f59f..840de8fd8 100644 --- a/src/web/ui/src/Access.fs +++ b/src/web/ui/src/Access.fs @@ -88,12 +88,11 @@ module Accounts = executionDecisionId="" clientId="" mfidId="" } - simAccountData = - { cti = CTICode.CtiCodeUndefined + simAccountData = + { cti = CTICode.CtiCodeUndefined origin = CustomerOrFirm.CustomerOrFirmCustomer - takeupMemberCode = "" clearingAccount = "" - } + } } } diff --git a/src/web/ui/src/Accounts/State.fs b/src/web/ui/src/Accounts/State.fs index e632c5e8e..f0d641523 100644 --- a/src/web/ui/src/Accounts/State.fs +++ b/src/web/ui/src/Accounts/State.fs @@ -161,7 +161,7 @@ let update msg (model:Model) : Model * Cmd = // Exchange data | UpdateCME field -> let newCme = applyCMEUpdate model.scratch.exchangeAccountData.cmeAccountData field - let scratch = { model.scratch with exchangeAccountData = { cmeAccountData = newCme; iceAccountData = model.scratch.exchangeAccountData.iceAccountData } } + let scratch = { model.scratch with exchangeAccountData = { cmeAccountData = newCme; simAccountData = newSim ; iceAccountData = model.scratch.exchangeAccountData.iceAccountData } } { model with scratch = scratch }, Cmd.Empty | RequestProducts -> model, Cmd.ofExistingPromise (requestProducts model.mdRelay) id (box>>ErrorOccured) diff --git a/src/web/ui/src/Users/State.fs b/src/web/ui/src/Users/State.fs index 79a16a0f7..8a77c46f7 100644 --- a/src/web/ui/src/Users/State.fs +++ b/src/web/ui/src/Users/State.fs @@ -57,6 +57,10 @@ let defaultScratchUser = { maxOrderRatePerConnection = "" location = "" } + simData = { + operatorId = "" + location = "" + } iceData = { authorizedTrader = "" memoField = ""