mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
7288fef34f
commit
2b154e273e
1 changed files with 26 additions and 24 deletions
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}))
|
}
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue