From 9a5de31d589adae64e64bf5ba4dccaa20fea1ce9 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 11 Apr 2023 14:01:14 +0300 Subject: [PATCH] Add notification on save of stats-profile. --- src/app/stats-profiles/stats-profiles.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/stats-profiles/stats-profiles.component.ts b/src/app/stats-profiles/stats-profiles.component.ts index 10ea30d..72e8f02 100644 --- a/src/app/stats-profiles/stats-profiles.component.ts +++ b/src/app/stats-profiles/stats-profiles.component.ts @@ -73,7 +73,7 @@ export class StatsProfilesComponent implements OnInit, OnDestroy { } resetForm() { - this.statsProfilesForm =this.fb.array([]); + this.statsProfilesForm = this.fb.array([]); this.statsProfiles.forEach(statsProfile => { this.statsProfilesForm.push(this.fb.group({ _id: this.fb.control(statsProfile._id), @@ -114,6 +114,7 @@ export class StatsProfilesComponent implements OnInit, OnDestroy { save() { this.loading = true; this.subscriptions.push(this.statsProfilesService.saveStatsProfiles(this.statsProfilesForm.getRawValue()).subscribe(statsProfiles => { + NotificationHandler.rise('Stats Profiles have been successfully saved'); this.statsProfiles = statsProfiles; this.resetForm(); this.loading = false;