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:
Jessica Lawshe 2019-05-14 10:48:45 -05:00 committed by sharelatex
parent 7763427cea
commit 77de78e70b
2 changed files with 12 additions and 0 deletions

View file

@ -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
}
}
})

View file

@ -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
}
}
}))