mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fixed algolia settings and removed some console.logs
This commit is contained in:
parent
4ccc56723f
commit
e1dd58aca8
3 changed files with 3 additions and 5 deletions
|
@ -143,10 +143,10 @@ module.exports = ProjectController =
|
||||||
hasSubscription: !!results.subscription
|
hasSubscription: !!results.subscription
|
||||||
}
|
}
|
||||||
|
|
||||||
if Settings?.algolia?.institutions?.app_id? and Settings?.algolia?.institutions?.api_key?
|
if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?
|
||||||
viewModel.showUserDetailsArea = true
|
viewModel.showUserDetailsArea = true
|
||||||
viewModel.algolia_api_key = Settings.algolia.institutions.api_key
|
viewModel.algolia_api_key = Settings.algolia.api_key
|
||||||
viewModel.algolia_app_id = Settings.algolia.institutions.app_id
|
viewModel.algolia_app_id = Settings.algolia.app_id
|
||||||
else
|
else
|
||||||
viewModel.showUserDetailsArea = false
|
viewModel.showUserDetailsArea = false
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ define [
|
||||||
"base"
|
"base"
|
||||||
], (App) ->
|
], (App) ->
|
||||||
App.directive 'fineUpload', ($timeout) ->
|
App.directive 'fineUpload', ($timeout) ->
|
||||||
console.log "7777777777"
|
|
||||||
return {
|
return {
|
||||||
scope: {
|
scope: {
|
||||||
multiple: "="
|
multiple: "="
|
||||||
|
|
|
@ -139,7 +139,6 @@ describe "ProjectUploadController", ->
|
||||||
.should.equal true
|
.should.equal true
|
||||||
|
|
||||||
it "should return a successful response to the FileUploader client", ->
|
it "should return a successful response to the FileUploader client", ->
|
||||||
console.log @res.body
|
|
||||||
expect(@res.body).to.deep.equal
|
expect(@res.body).to.deep.equal
|
||||||
success: true
|
success: true
|
||||||
entity_id: @entity._id
|
entity_id: @entity._id
|
||||||
|
|
Loading…
Reference in a new issue