From e2bdc76428139d265e72af91a713d0b7e269c29b Mon Sep 17 00:00:00 2001 From: Danijel Anđelković Date: Wed, 13 Apr 2022 23:24:58 +0200 Subject: Izmenio Notifications, dodao automatsko osvezavanje dataset-load kada se dataset preprocesira. Ispravio bag sa grafom gde samo prva graf komponenta funkcionise. --- .../src/app/_elements/notifications/notifications.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'frontend/src/app/_elements/notifications/notifications.component.ts') diff --git a/frontend/src/app/_elements/notifications/notifications.component.ts b/frontend/src/app/_elements/notifications/notifications.component.ts index cad8a95f..e199f70a 100644 --- a/frontend/src/app/_elements/notifications/notifications.component.ts +++ b/frontend/src/app/_elements/notifications/notifications.component.ts @@ -13,17 +13,17 @@ export class NotificationsComponent implements OnInit { closed: boolean = false; constructor(private signalRService: SignalRService) { - } ngOnInit(): void { if (this.signalRService.hubConnection) { - this.signalRService.hubConnection.on("NotifyDataset", (message: string) => { - this.notifications.push(new Notification(message, "datasetIDOvde!!!", 1.0)); + this.signalRService.hubConnection.on("NotifyDataset", (dName: string, dId: string) => { + this.notifications.push(new Notification(`Obrađen izvor podataka: ${dName}`, dId, 1.0, false)); }); - this.signalRService.hubConnection.on("NotifyEpoch", (message: string) => { - this.notifications.push(new Notification(message, "predictorIDOvde!!!", 0.5 /*(epoch / model.epochs)*/)); + this.signalRService.hubConnection.on("NotifyEpoch", (epoch: string, mName: string, mId: string, numEpochs) => { + //todo epoch + this.notifications.push(new Notification(`Treniranje modela: ${mName}`, mId, 0.5)); }); } else { console.warn("Notifications: No connection!"); -- cgit v1.2.3