mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 11:34:15 -05:00
c634f51eee
Add paywall prompt events GitOrigin-RevId: 6b1b3b384590f14828f37210b2e14047e2ee33d6
14 lines
520 B
JavaScript
14 lines
520 B
JavaScript
import App from '../base'
|
|
import { startFreeTrial, upgradePlan, paywallPrompt } from './account-upgrade'
|
|
|
|
App.controller('FreeTrialModalController', function ($scope) {
|
|
$scope.buttonClass = 'btn-primary'
|
|
$scope.startFreeTrial = (source, version) =>
|
|
startFreeTrial(source, version, $scope)
|
|
$scope.paywallPrompt = source => paywallPrompt(source)
|
|
})
|
|
|
|
App.controller('UpgradeModalController', function ($scope) {
|
|
$scope.buttonClass = 'btn-primary'
|
|
$scope.upgradePlan = source => upgradePlan(source, $scope)
|
|
})
|