WIP modal
This commit is contained in:
parent
b681a5a9af
commit
fda22acffe
4 changed files with 60 additions and 13 deletions
|
|
@ -7,6 +7,8 @@ import { environment } from 'src/environments/environment.development';
|
|||
})
|
||||
export class FetchLogService {
|
||||
|
||||
showModal: boolean = false
|
||||
|
||||
constructor(
|
||||
private httpClient: HttpClient
|
||||
) {}
|
||||
|
|
@ -54,9 +56,10 @@ export class FetchLogService {
|
|||
const url = window.URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = 'logfile.log';
|
||||
a.innerText = "Click here to download as `.log` file";
|
||||
a.download = filename+'.log';
|
||||
a.innerText = "Download "+filename+".log";
|
||||
if(isDisplayOnly){
|
||||
this.showModal = !this.showModal;
|
||||
blob.text().then(v => document.getElementById("log-disp-texts")!.innerHTML = v);
|
||||
} else {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue