overleaf/services/web/frontend/js/main/account-upgrade-angular.js
Paulo Jorge Reis 11e58b5844 Add timeout upgrade prompt to the new compile UI (#3528)
* Uncouple account-upgrade and exposted-settings from Angular

* Mock socket shim with the correct methods

* Extract timeout upgrade prompt to a component

GitOrigin-RevId: ee8058b38bf5e20924a21f40d32c5bb0ee06c555
2021-01-15 03:05:48 +00:00

13 lines
491 B
JavaScript

import App from '../base'
import { startFreeTrial, upgradePlan } from './account-upgrade'
App.controller('FreeTrialModalController', function($scope, eventTracking) {
$scope.buttonClass = 'btn-primary'
$scope.startFreeTrial = (source, version) =>
startFreeTrial(source, version, $scope, eventTracking)
})
App.controller('UpgradeModalController', function($scope, eventTracking) {
$scope.buttonClass = 'btn-primary'
$scope.upgradePlan = source => upgradePlan(source, $scope)
})