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
|
|
|
|
2023-10-13 05:13:49 -04:00
|
|
|
App.controller('FreeTrialModalController', [
|
|
|
|
'$scope',
|
|
|
|
function ($scope) {
|
|
|
|
$scope.buttonClass = 'btn-primary'
|
|
|
|
$scope.startFreeTrial = (source, version) =>
|
|
|
|
startFreeTrial(source, version, $scope)
|
|
|
|
$scope.paywallPrompt = source => paywallPrompt(source)
|
|
|
|
},
|
|
|
|
])
|
2021-01-14 10:16:54 -05:00
|
|
|
|
2023-10-13 05:13:49 -04:00
|
|
|
App.controller('UpgradeModalController', [
|
|
|
|
'$scope',
|
|
|
|
function ($scope) {
|
|
|
|
$scope.buttonClass = 'btn-primary'
|
|
|
|
$scope.upgradePlan = source => upgradePlan(source, $scope)
|
|
|
|
},
|
|
|
|
])
|