Project

General

Profile

« Previous | Next » 

Revision 61398

[Graph]: Update trunk to angular 11. Delete branch from angular 11

View differences:

home.component.ts
2 2
import {Subscription} from 'rxjs';
3 3
import {ActivatedRoute, Router} from '@angular/router';
4 4
import {Location} from '@angular/common';
5
import 'rxjs/add/observable/zip';
6 5
import {Meta, Title} from '@angular/platform-browser';
7 6
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service';
8 7
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
......
132 131
          parameterNames.push('type');
133 132
          parameterValues.push(values.join(','));
134 133
        }
135
        if (this.resultsQuickFilter) {
136
          parameterNames.push('qf');
137
          parameterValues.push('' + this.resultsQuickFilter.selected);
134
        if (this.resultsQuickFilter && this.resultsQuickFilter.selected) {
135
          parameterNames.push(this.resultsQuickFilter.filterId);
136
          parameterValues.push('"'+ encodeURIComponent(this.resultsQuickFilter.value)+'"');
138 137
        }
139 138
      }
140 139
    } else if (this.selectedEntity == 'all') {
141
      if (this.resultsQuickFilter) {
142
        parameterNames.push('qf');
143
        parameterValues.push('true');
140
      if (this.resultsQuickFilter && this.resultsQuickFilter.selected) {
141
        parameterNames.push(this.resultsQuickFilter.filterId);
142
        parameterValues.push('"'+ encodeURIComponent(this.resultsQuickFilter.value)+'"');
144 143
      }
145 144
    }
146 145
    if (this.keyword.length > 0) {

Also available in: Unified diff