aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/notifications/notifications.component.ts
diff options
context:
space:
mode:
authorDanijel Anđelković <adanijel99@gmail.com>2022-04-13 23:24:58 +0200
committerDanijel Anđelković <adanijel99@gmail.com>2022-04-13 23:24:58 +0200
commite2bdc76428139d265e72af91a713d0b7e269c29b (patch)
tree868ae40be499315989a1c5f212abdeb96754e733 /frontend/src/app/_elements/notifications/notifications.component.ts
parentc6bc1bc4952173f61d1b1adf3b67cbd1c64e85b2 (diff)
Izmenio Notifications, dodao automatsko osvezavanje dataset-load kada se dataset preprocesira. Ispravio bag sa grafom gde samo prva graf komponenta funkcionise.
Diffstat (limited to 'frontend/src/app/_elements/notifications/notifications.component.ts')
-rw-r--r--frontend/src/app/_elements/notifications/notifications.component.ts10
1 files changed, 5 insertions, 5 deletions
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!");