aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2020-12-27 20:58:03 +0100
committerGitHub <noreply@github.com>2020-12-27 21:58:03 +0200
commit40274b4a935fff50e223751ce3653c2549352b10 (patch)
treea526f098018a04bbb12bccbebc6122ca209fa732 /web_src
parent25f8970b2cc5d2c9fd357ef2c60a54886154f6c9 (diff)
downloadgitea-40274b4a935fff50e223751ce3653c2549352b10.tar.gz
gitea-40274b4a935fff50e223751ce3653c2549352b10.zip
Team dashboards (#14159)
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index c3a70d756f..93708e4fdc 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -2755,6 +2755,11 @@ function initVueComponents() {
type: Number,
required: true
},
+ teamId: {
+ type: Number,
+ required: false,
+ default: 0
+ },
organizations: {
type: Array,
default: () => [],
@@ -2853,7 +2858,7 @@ function initVueComponents() {
return this.repos.length > 0 && this.repos.length < this.counts[`${this.reposFilter}:${this.archivedFilter}:${this.privateFilter}`];
},
searchURL() {
- return `${this.suburl}/api/v1/repos/search?sort=updated&order=desc&uid=${this.uid}&q=${this.searchQuery
+ return `${this.suburl}/api/v1/repos/search?sort=updated&order=desc&uid=${this.uid}&team_id=${this.teamId}&q=${this.searchQuery
}&page=${this.page}&limit=${this.searchLimit}&mode=${this.repoTypes[this.reposFilter].searchMode
}${this.reposFilter !== 'all' ? '&exclusive=1' : ''
}${this.archivedFilter === 'archived' ? '&archived=true' : ''}${this.archivedFilter === 'unarchived' ? '&archived=false' : ''
@@ -3034,7 +3039,7 @@ function initVueComponents() {
this.isLoading = true;
if (!this.reposTotalCount) {
- const totalCountSearchURL = `${this.suburl}/api/v1/repos/search?sort=updated&order=desc&uid=${this.uid}&q=&page=1&mode=`;
+ const totalCountSearchURL = `${this.suburl}/api/v1/repos/search?sort=updated&order=desc&uid=${this.uid}&team_id=${this.teamId}&q=&page=1&mode=`;
$.getJSON(totalCountSearchURL, (_result, _textStatus, request) => {
self.reposTotalCount = request.getResponseHeader('X-Total-Count');
});