summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-05-16 23:12:03 +0100
committerGitHub <noreply@github.com>2020-05-17 01:12:03 +0300
commitc18144086f9d4a06adbd4a7c08cfa6dab91224ec (patch)
tree45ba971bec7a524043c5c709131b1cce1e542376 /web_src
parentaaaaeb7050b57971b348665cced38a1a4fe61821 (diff)
downloadgitea-c18144086f9d4a06adbd4a7c08cfa6dab91224ec.tar.gz
gitea-c18144086f9d4a06adbd4a7c08cfa6dab91224ec.zip
Hide archived repos by default in repo-list (#11440)
As discussed in #11268 hide archived repos by default in the dashboard repo-list Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 0a7bc0c4cd..f7b4ef24d8 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -2681,7 +2681,7 @@ function initVueComponents() {
let archivedFilter = params.get('repo-search-archived');
if (!archivedFilter) {
- archivedFilter = 'both';
+ archivedFilter = 'unarchived';
}
let searchQuery = params.get('repo-search-query');
@@ -2778,8 +2778,8 @@ function initVueComponents() {
$('#archivedFilterCheckbox').checkbox('set indeterminate');
break;
default:
- this.archivedFilter = 'both';
- $('#archivedFilterCheckbox').checkbox('set indeterminate');
+ this.archivedFilter = 'unarchived';
+ $('#archivedFilterCheckbox').checkbox('set unchecked');
break;
}
switch (this.privateFilter) {
@@ -2828,7 +2828,7 @@ function initVueComponents() {
params.set('repo-search-private', this.privateFilter);
}
- if (this.archivedFilter === 'both') {
+ if (this.archivedFilter === 'unarchived') {
params.delete('repo-search-archived');
} else {
params.set('repo-search-archived', this.archivedFilter);
@@ -2861,7 +2861,7 @@ function initVueComponents() {
this.archivedFilter = 'both';
break;
default:
- this.archivedFilter = 'both';
+ this.archivedFilter = 'unarchived';
break;
}
this.page = 1;
@@ -2916,7 +2916,7 @@ function initVueComponents() {
case 'archived':
return repo.archived;
default:
- return true;
+ return !repo.archived;
}
},