const favorite = _.first(this.favorite, 6).map(function (f, index) {
return _.extend(f, { extra: index === 0 ? translate('favorite') : null });
});
- const qualifiers = this.model.get('qualifiers')
- .filter(q => q !== 'TRK')
- .map(function (q, index) {
- return {
- url: window.baseUrl + '/all_projects?qualifier=' + encodeURIComponent(q),
- name: translate('qualifiers.all', q),
- extra: index === 0 ? '' : null
- };
- });
- this.results.reset([].concat(history, favorite, qualifiers));
+ this.results.reset([].concat(history, favorite));
},
search (q) {