overleaf/services/web/frontend/js/main/project-list/left-hand-menu-promo-controller.js
Thomas 5e2933e2fe Merge pull request #8240 from overleaf/tm-teardown-persistent-upgrade-test
Teardown persistent upgrade prompt split test and fix styling

GitOrigin-RevId: 8776231c3308c5f08b91232c962c9796a5f4afa0
2022-06-02 08:02:45 +00:00

14 lines
379 B
JavaScript

import App from '../../base'
export default App.controller(
'LeftHandMenuPromoController',
function ($scope, UserAffiliationsDataService, eventTracking) {
$scope.hasProjects = window.data.projects.length > 0
const _userHasNoAffiliation = function () {
$scope.withAffiliations = window.data.userAffiliations.length > 0
}
_userHasNoAffiliation()
}
)