mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Team dashboards (#14159)
This commit is contained in:
		| @@ -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'); | ||||
|           }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jimmy Praet
					Jimmy Praet