summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorMorlinest <Morlinest@users.noreply.github.com>2017-08-22 15:00:34 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-08-22 21:00:34 +0800
commit7455604f0c8b47023850cd580dc09331b0bf9c88 (patch)
treec269ebb930ba57802be8cb6f5e3b6ff77843dce8 /public
parent2c6a0fdca83ab4ccc2e5628e4ca7d229c844618c (diff)
downloadgitea-7455604f0c8b47023850cd580dc09331b0bf9c88.tar.gz
gitea-7455604f0c8b47023850cd580dc09331b0bf9c88.zip
Remove (almost) server side data rendering from repo-search component (#2317)
* Rename some shorthands * Remove (almost) server side data rendering from repo-search component template
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js24
1 files changed, 22 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 1bad33e08d..1372afa425 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1687,13 +1687,33 @@ function initVueComponents(){
type: Number,
required: true
},
+ organizations: {
+ type: Array,
+ default: []
+ },
+ isOrganization: {
+ type: Boolean,
+ default: true
+ },
+ canCreateOrganization: {
+ type: Boolean,
+ default: false
+ },
+ organizationsTotalCount: {
+ type: Number,
+ default: 0
+ },
+ moreReposLink: {
+ type: String,
+ default: ''
+ }
},
data: function() {
return {
tab: 'repos',
repos: [],
- reposTotal: 0,
+ reposTotalCount: 0,
reposFilter: 'all',
searchQuery: '',
isLoading: false
@@ -1741,7 +1761,7 @@ function initVueComponents(){
if (searchedQuery == self.searchQuery) {
self.repos = result.data;
if (searchedQuery == "") {
- self.reposTotal = request.getResponseHeader('X-Total-Count');
+ self.reposTotalCount = request.getResponseHeader('X-Total-Count');
}
}
}).always(function() {