Skip to content

Commit

Permalink
Cobbler-Frontend: Add event log viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Jul 1, 2024
1 parent b9251fe commit d1291ee
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import {Component, OnInit} from '@angular/core';
import {Component, Inject, OnInit} from '@angular/core';
import {UserService} from "../services/user.service";
import {Router} from "@angular/router";
import {AuthGuardService} from "../services/auth-guard.service";
import {COBBLER_URL, CobblerApiService} from "cobbler-api";

@Component({
selector: 'cobbler-app-events',
Expand All @@ -7,7 +11,18 @@ import {Component, OnInit} from '@angular/core';
})
export class AppEventsComponent {

constructor() {
constructor(
public authO: UserService,
private router: Router,
private guard: AuthGuardService,
@Inject(COBBLER_URL) url: URL,
private cobblerApiService: CobblerApiService,
) {
cobblerApiService.get_events("")
cobblerApiService.get_event_log("")
// TODO: Use "get_events" to show a table of all events
// TODO: Have three dots at the end of row with menu entry "show logs"
// TODO: Have page with fixed top for event details and scrollable text field for the log
}

}

0 comments on commit d1291ee

Please sign in to comment.