WIP modal

This commit is contained in:
pakintada@gmail.com 2023-09-22 09:54:07 +07:00
parent b681a5a9af
commit fda22acffe
4 changed files with 60 additions and 13 deletions

View file

@ -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 {