mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 15:30:34 -04:00
28 lines
685 B
TypeScript
28 lines
685 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { UpdateVersionEvent } from 'src/app/_models/events/update-version-event';
|
|
import { ServerService } from 'src/app/_services/server.service';
|
|
|
|
@Component({
|
|
selector: 'app-changelog',
|
|
templateUrl: './changelog.component.html',
|
|
styleUrls: ['./changelog.component.scss']
|
|
})
|
|
export class ChangelogComponent implements OnInit {
|
|
|
|
updates: Array<UpdateVersionEvent> = [];
|
|
isLoading: boolean = true;
|
|
|
|
constructor(private serverService: ServerService) { }
|
|
|
|
ngOnInit(): void {
|
|
|
|
this.serverService.getChangelog().subscribe(updates => {
|
|
this.updates = updates;
|
|
this.isLoading = false;
|
|
});
|
|
|
|
|
|
|
|
}
|
|
}
|