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

@ -15,6 +15,7 @@ import { FetchLogService } from 'src/app/shared/services/fetch-log.service';
export class ChangelogComponent {
public displayableLogs: string[] = [];
showLogModal:boolean = false;
constructor(
private httpClient: HttpClient,
@ -67,6 +68,13 @@ export class ChangelogComponent {
}
viewLog(name:string){
new FetchLogService(this.httpClient).fetchLogsToDisplay("", true, false, name);
let cli = new FetchLogService(this.httpClient);
this.showLogModal = !this.showLogModal;
cli.fetchLogsToDisplay("", true, false, name);
cli.fetchLogsToDisplay("", false, false, name);
}
toggleLogModal(){
this.showLogModal = !this.showLogModal;
}
}