mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-06 04:32:22 +00:00
Merge pull request #1771 from overleaf/jel-new-file-controller-scope
Pass in missing scope to NewFileModalController GitOrigin-RevId: 41de974c8ff93bb41d42ef2d17e0c0732ba12ffb
This commit is contained in:
parent
7763427cea
commit
77de78e70b
2 changed files with 12 additions and 0 deletions
|
@ -60,11 +60,17 @@ define(['base'], function(App) {
|
|||
controller: 'NewFileModalController',
|
||||
size: 'lg',
|
||||
resolve: {
|
||||
projectFeatures() {
|
||||
return ide.$scope.project.features
|
||||
},
|
||||
parent_folder() {
|
||||
return ide.fileTreeManager.getCurrentFolder()
|
||||
},
|
||||
type() {
|
||||
return 'upload'
|
||||
},
|
||||
userFeatures() {
|
||||
return ide.$scope.user.features
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -99,8 +99,14 @@ define(['base'], App =>
|
|||
parent_folder() {
|
||||
return $scope.entity
|
||||
},
|
||||
projectFeatures() {
|
||||
return ide.$scope.project.features
|
||||
},
|
||||
type() {
|
||||
return 'upload'
|
||||
},
|
||||
userFeatures() {
|
||||
return ide.$scope.user.features
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
|
Loading…
Add table
Reference in a new issue