Merge pull request #3898 from overleaf/as-fix-angular-service-arrow-function

Refactor Angular service method away from an arrow function

GitOrigin-RevId: a83d90d0d44a28d1b898aef0490084def3089f47
This commit is contained in:
Alasdair Smith 2021-04-14 09:59:20 +01:00 committed by Copybot
parent 7288fef34f
commit 2b154e273e

View file

@ -3,7 +3,8 @@
*/ */
import App from '../../../base' import App from '../../../base'
export default App.service('ProjectListService', () => ({ export default App.service('ProjectListService', function() {
return {
getOwnerName(project) { getOwnerName(project) {
if (project.accessLevel === 'owner') { if (project.accessLevel === 'owner') {
return 'You' return 'You'
@ -30,4 +31,5 @@ export default App.service('ProjectListService', () => ({
return 'None' return 'None'
} }
} }
})) }
})