Cloak plans until they have loaded

This commit is contained in:
Shane Kilkelly 2016-10-24 11:24:28 +01:00
parent 5cf82e4ef7
commit c051b56abf
2 changed files with 6 additions and 1 deletions

View file

@ -57,7 +57,7 @@ block content
ng-click="changeCurreny(currency)"
) {{currency}} ({{value['symbol']}})
div
div(ng-show="showPlans")
.row(ng-cloak)
.col-md-10.col-md-offset-1
.row

View file

@ -306,6 +306,8 @@ define [
App.controller "PlansController", ($scope, $modal, event_tracking, abTestManager, MultiCurrencyPricing, $http, sixpack) ->
$scope.showPlans = false
$scope.plansVariant = 'default'
$scope.shouldABTestPlans = window.shouldABTestPlans
@ -318,6 +320,9 @@ define [
for currency, _v of $scope.plans
$scope.plans[currency]['student'] = MultiCurrencyPricing[chosenVariation][currency]['student']
$scope.plans[currency]['collaborator'] = MultiCurrencyPricing[chosenVariation][currency]['collaborator']
$scope.showPlans = true
else
$scope.showPlans = true
$scope.plans = MultiCurrencyPricing.plans