Kaynağa Gözat

dashboard: sort Repositories widget by most recently updated (issue #3963) (#4599)

Similar to Github and other git hosting sites, sort the user's repos on
the dashboard by last updated rather than alphabetically. An alphabetic
sort isn't very useful once a user has more than 15 repos and wants
quick access to recent ones that aren't in the first part of the alphabet.
tags/v1.9.0-dev
Allen Wild 5 yıl önce
ebeveyn
işleme
ff2be17e3f
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3
    1
      public/js/index.js

+ 3
- 1
public/js/index.js Dosyayı Görüntüle

@@ -2171,7 +2171,9 @@ function initVueComponents(){
return this.repos.length > 0 && this.repos.length < this.repoTypes[this.reposFilter].count;
},
searchURL: function() {
return this.suburl + '/api/v1/repos/search?uid=' + this.uid + '&q=' + this.searchQuery + '&limit=' + this.searchLimit + '&mode=' + this.repoTypes[this.reposFilter].searchMode + (this.reposFilter !== 'all' ? '&exclusive=1' : '');
return this.suburl + '/api/v1/repos/search?sort=updated&order=desc&uid=' + this.uid + '&q=' + this.searchQuery
+ '&limit=' + this.searchLimit + '&mode=' + this.repoTypes[this.reposFilter].searchMode
+ (this.reposFilter !== 'all' ? '&exclusive=1' : '');
},
repoTypeCount: function() {
return this.repoTypes[this.reposFilter].count;

Loading…
İptal
Kaydet