mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix bug which showed all plans as monthly in payment form.
Also use translations for string of month/year
This commit is contained in:
parent
08420a305a
commit
1d6c928c81
2 changed files with 4 additions and 3 deletions
|
@ -43,7 +43,8 @@ block content
|
||||||
div(ng-if="trialLength") !{translate("first_few_days_free", {trialLen:'{{trialLength}}'})}
|
div(ng-if="trialLength") !{translate("first_few_days_free", {trialLen:'{{trialLength}}'})}
|
||||||
div(ng-if="price")
|
div(ng-if="price")
|
||||||
strong {{price.currency.symbol}}{{price.next.total}}
|
strong {{price.currency.symbol}}{{price.next.total}}
|
||||||
span #{translate("every")} {{billingCycleType}}
|
span(ng-if="monthlyBilling") #{translate("every")} #{translate("month")}
|
||||||
|
span(ng-if="!monthlyBilling") #{translate("every")} #{translate("year")}
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
form(ng-show="planName")
|
form(ng-show="planName")
|
||||||
|
|
|
@ -54,7 +54,7 @@ define [
|
||||||
$scope.planName = pricing.items.plan.name
|
$scope.planName = pricing.items.plan.name
|
||||||
$scope.price = pricing.price
|
$scope.price = pricing.price
|
||||||
$scope.trialLength = pricing.items.plan.trial?.length
|
$scope.trialLength = pricing.items.plan.trial?.length
|
||||||
$scope.billingCycleType = if pricing.items.plan.period.interval == "months" then "month" else "year"
|
$scope.monthlyBilling = pricing.items.plan.period.length == 1
|
||||||
$scope.$apply()
|
$scope.$apply()
|
||||||
|
|
||||||
$scope.applyCoupon = ->
|
$scope.applyCoupon = ->
|
||||||
|
|
Loading…
Reference in a new issue