Fixed issues arising from API changes.

This commit is contained in:
Clinton Alexander 2016-07-08 10:22:26 +01:00
parent f3e0a0c0be
commit 742200d781
2 changed files with 6 additions and 12 deletions

View File

@ -55,7 +55,7 @@ let floatingLegModel = {
paymentDelay: 0, paymentDelay: 0,
paymentCalendar: [ "London" ], paymentCalendar: [ "London" ],
interestPeriodAdjustment: "Adjusted", interestPeriodAdjustment: "Adjusted",
fixingPeriod: "TWODAYS", fixingPeriodOffset: 2,
resetRule: "InAdvance", resetRule: "InAdvance",
fixingsPerPayment: "Quarterly", fixingsPerPayment: "Quarterly",
fixingCalendar: [ "NewYork" ], fixingCalendar: [ "NewYork" ],
@ -123,8 +123,7 @@ let commonViewModel = {
let dealViewModel = { let dealViewModel = {
fixedLeg: fixedLegModel, fixedLeg: fixedLegModel,
floatingLeg: floatingLegModel, floatingLeg: floatingLegModel,
common: commonViewModel, common: commonViewModel
notary: "Bank A"
}; };
// TODO: Fill out this lookup table and use it to inject into the view. // TODO: Fill out this lookup table and use it to inject into the view.
@ -168,8 +167,7 @@ let Deal = function(dealViewModel) {
fixedLeg: fixedLeg, fixedLeg: fixedLeg,
floatingLeg: floatingLeg, floatingLeg: floatingLeg,
calculation: calculationModel, calculation: calculationModel,
common: common, common: common
notary: dealViewModel.notary
} }
return json; return json;

View File

@ -250,8 +250,8 @@
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label>Fixing Period</label> <label>Fixing Period Offset</label>
<input type="text" name="fixingPeriod" ng-model="deal.floatingLeg.fixingPeriod"/> <input type="number" name="fixingPeriodOffset" ng-model="deal.floatingLeg.fixingPeriodOffset"/>
</div> </div>
<div class="field"> <div class="field">
<label>Reset Rule</label> <label>Reset Rule</label>
@ -285,10 +285,6 @@
</div> </div>
<div class="sixteen wide column"> <div class="sixteen wide column">
<h3>Common</h3> <h3>Common</h3>
<div class="field">
<label>Notary</label>
<input type="text" name="notary" ng-model="deal.notary"/>
</div>
<div class="field"> <div class="field">
<label>Base Currency</label> <label>Base Currency</label>
<input type="text" name="baseCurrency" ng-model="deal.common.baseCurrency"/> <input type="text" name="baseCurrency" ng-model="deal.common.baseCurrency"/>