2021-01-14 10:16:54 -05:00
|
|
|
import App from '../base'
|
2021-06-10 04:04:21 -04:00
|
|
|
import { startFreeTrial, upgradePlan, paywallPrompt } from './account-upgrade'
|
2021-01-14 10:16:54 -05:00
|
|
|
|
2021-06-10 04:04:21 -04:00
|
|
|
App.controller('FreeTrialModalController', function ($scope) {
|
2021-01-14 10:16:54 -05:00
|
|
|
$scope.buttonClass = 'btn-primary'
|
|
|
|
$scope.startFreeTrial = (source, version) =>
|
2021-06-10 04:04:21 -04:00
|
|
|
startFreeTrial(source, version, $scope)
|
|
|
|
$scope.paywallPrompt = source => paywallPrompt(source)
|
2021-01-14 10:16:54 -05:00
|
|
|
})
|
|
|
|
|
2021-06-10 04:04:21 -04:00
|
|
|
App.controller('UpgradeModalController', function ($scope) {
|
2021-01-14 10:16:54 -05:00
|
|
|
$scope.buttonClass = 'btn-primary'
|
|
|
|
$scope.upgradePlan = source => upgradePlan(source, $scope)
|
|
|
|
})
|