Jelajahi Sumber

Cloak plans until they have loaded

Shane Kilkelly 10 tahun lalu
induk
melakukan
c051b56abf

+ 1 - 1
services/web/app/views/subscriptions/plans.jade

@@ -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

+ 5 - 0
services/web/public/coffee/main/plans.coffee

@@ -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