Project

General

Profile

« Previous | Next » 

Revision 48972

Remove unnecessary functions for csv download in search services and components -- currently 'exportCSV.class.ts' file not used and will be deleted soon

View differences:

searchDownload.component.ts
10 10
    selector: 'search-download',
11 11
    template: `
12 12
        <span class="uk-margin-large-right" *ngIf="totalResults <= 10000">
13
            <!--a (click)="download()" href="{{downloadURLAPI}}{{type}}?format=csv&page=0&size={{totalResults}}{{csvParams}}" -->
14 13
            <span class="clickable" (click)="downloadfile(downloadURLAPI+type+'?format=csv&page=0&size='+totalResults+csvParams,type+'-report-'+totalResults)">
15 14
                <span aria-hidden="true" class="glyphicon glyphicon-download"></span>
16 15
                <span  class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="download" ratio="1"><polyline fill="none" stroke="#000" points="14,10 9.5,14.5 5,10"></polyline><rect x="3" y="17" width="13" height="1"></rect><line fill="none" stroke="#000" x1="9.5" y1="13.91" x2="9.5" y2="3"></line></svg></span> (CSV)
......
26 25
    @Input() csvParams: string;
27 26
    @Input() type: string;
28 27
    @ViewChild(AlertModal) alertApplyAll;
29
    @Output() downloadClick  = new EventEmitter();
30 28
    private downloadURLAPI: string;
31 29

  
32 30
    sub: any;
......
49 47
      }
50 48
    }
51 49

  
52
    confirmClose(data){
53

  
54
    }
55
    download() {
56
        this.downloadClick.emit({
57
            value: true
58
        });
59
    }
60

  
61 50
    denialOfDownload() {
62 51
        this.alertApplyAll.isOpen = true;
63 52
        this.alertApplyAll.cancelButton = true;

Also available in: Unified diff