parent
7ee79dc1d9
commit
665fdc91a8
@ -0,0 +1,6 @@
|
||||
<ion-list>
|
||||
<ion-item button (click)="onSelect('html_export')">
|
||||
<ion-icon slot="start" name="menu"></ion-icon>
|
||||
<ion-label>Export to HTML Site</ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
@ -0,0 +1,23 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Router} from '@angular/router';
|
||||
import {ApiService} from '../../service/api.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-option-picker',
|
||||
templateUrl: './option-picker.component.html',
|
||||
styleUrls: ['./option-picker.component.scss'],
|
||||
})
|
||||
export class OptionPickerComponent implements OnInit {
|
||||
|
||||
constructor(
|
||||
protected api: ApiService
|
||||
) { }
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
onSelect(key) {
|
||||
if ( key === 'html_export' ) {
|
||||
window.open(this.api._build_url('/data/export/html'), '_blank');
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue