Skip to content

Commit

Permalink
add sidebar search limit to environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
edoparearyee committed Jul 20, 2015
1 parent b85b01f commit a67fdff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/js/search/controllers/SearchCtrl.js
Expand Up @@ -41,7 +41,7 @@ angular.module("FM.search.SearchCtrl", [
var deferred = $q.defer();

Spotify.search(query, "album,artist,track", {
limit: 3,
limit: env.SIDEBAR_SEARCH_LIMIT,
market: env.REGION_CODE
}).then(function (response) {
var albums = (response.albums && response.albums.items && response.albums.items.length > 0),
Expand Down
9 changes: 6 additions & 3 deletions env.json
Expand Up @@ -7,7 +7,8 @@
"HTML5_LOCATION": true,
"GOOGLE_CLIENT_ID": "826576189197-4sr9fonm8vr6ora4mfgdtou6j3v69asq.apps.googleusercontent.com",
"REGION_CODE": "GB",
"SEARCH_LIMIT": 20
"SEARCH_LIMIT": 20,
"SIDEBAR_SEARCH_LIMIT": 3
},
"production": {
"BASE_URL": "https://thisissoon.fm/",
Expand All @@ -17,7 +18,8 @@
"HTML5_LOCATION": true,
"GOOGLE_CLIENT_ID": "999522755620-kiiv5l08jf9ummob1iqveokd373r3r60.apps.googleusercontent.com",
"REGION_CODE": "GB",
"SEARCH_LIMIT": 20
"SEARCH_LIMIT": 20,
"SIDEBAR_SEARCH_LIMIT": 3
},
"phonegap": {
"BASE_URL": "./",
Expand All @@ -27,6 +29,7 @@
"HTML5_LOCATION": false,
"GOOGLE_CLIENT_ID": "999522755620-kiiv5l08jf9ummob1iqveokd373r3r60.apps.googleusercontent.com",
"REGION_CODE": "GB",
"SEARCH_LIMIT": 20
"SEARCH_LIMIT": 20,
"SIDEBAR_SEARCH_LIMIT": 3
}
}

0 comments on commit a67fdff

Please sign in to comment.