mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Cloak plans until they have loaded
This commit is contained in:
parent
5cf82e4ef7
commit
c051b56abf
2 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,7 @@ block content
|
||||||
ng-click="changeCurreny(currency)"
|
ng-click="changeCurreny(currency)"
|
||||||
) {{currency}} ({{value['symbol']}})
|
) {{currency}} ({{value['symbol']}})
|
||||||
|
|
||||||
div
|
div(ng-show="showPlans")
|
||||||
.row(ng-cloak)
|
.row(ng-cloak)
|
||||||
.col-md-10.col-md-offset-1
|
.col-md-10.col-md-offset-1
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -306,6 +306,8 @@ define [
|
||||||
|
|
||||||
App.controller "PlansController", ($scope, $modal, event_tracking, abTestManager, MultiCurrencyPricing, $http, sixpack) ->
|
App.controller "PlansController", ($scope, $modal, event_tracking, abTestManager, MultiCurrencyPricing, $http, sixpack) ->
|
||||||
|
|
||||||
|
$scope.showPlans = false
|
||||||
|
|
||||||
$scope.plansVariant = 'default'
|
$scope.plansVariant = 'default'
|
||||||
$scope.shouldABTestPlans = window.shouldABTestPlans
|
$scope.shouldABTestPlans = window.shouldABTestPlans
|
||||||
|
|
||||||
|
@ -318,6 +320,9 @@ define [
|
||||||
for currency, _v of $scope.plans
|
for currency, _v of $scope.plans
|
||||||
$scope.plans[currency]['student'] = MultiCurrencyPricing[chosenVariation][currency]['student']
|
$scope.plans[currency]['student'] = MultiCurrencyPricing[chosenVariation][currency]['student']
|
||||||
$scope.plans[currency]['collaborator'] = MultiCurrencyPricing[chosenVariation][currency]['collaborator']
|
$scope.plans[currency]['collaborator'] = MultiCurrencyPricing[chosenVariation][currency]['collaborator']
|
||||||
|
$scope.showPlans = true
|
||||||
|
else
|
||||||
|
$scope.showPlans = true
|
||||||
|
|
||||||
$scope.plans = MultiCurrencyPricing.plans
|
$scope.plans = MultiCurrencyPricing.plans
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue