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