mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 12:29:09 -05:00
11e58b5844
* 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
13 lines
491 B
JavaScript
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)
|
|
})
|