let archivedFilter = params.get('repo-search-archived');
if (!archivedFilter) {
- archivedFilter = 'both';
+ archivedFilter = 'unarchived';
}
let searchQuery = params.get('repo-search-query');
$('#archivedFilterCheckbox').checkbox('set indeterminate');
break;
default:
- this.archivedFilter = 'both';
- $('#archivedFilterCheckbox').checkbox('set indeterminate');
+ this.archivedFilter = 'unarchived';
+ $('#archivedFilterCheckbox').checkbox('set unchecked');
break;
}
switch (this.privateFilter) {
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);
this.archivedFilter = 'both';
break;
default:
- this.archivedFilter = 'both';
+ this.archivedFilter = 'unarchived';
break;
}
this.page = 1;
case 'archived':
return repo.archived;
default:
- return true;
+ return !repo.archived;
}
},