From 29caf98af54a3d02b7f91c1561f0da729069236c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Stawujak?= Date: Tue, 15 Jan 2019 18:33:48 +0100 Subject: [PATCH] small changes --- .../src/app/layout/sidebar-nav.component.ts | 16 ---------------- .../angular/src/app/profile/profile.component.ts | 3 ++- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts b/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts index 91abeba..8f7862d 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts @@ -21,22 +21,6 @@ export class SideBarNavComponent extends AppComponentBase { new MenuItem(this.l("Role"), "Pages.Roles", "local_offer", "/app/roles"), new MenuItem(this.l("O projekcie"), "", "info", "/app/about"), - // new MenuItem(this.l("MultiLevelMenu"), "", "menu", "", [ - // new MenuItem("ASP.NET Boilerplate", "", "", "", [ - // new MenuItem("Home", "", "", "https://aspnetboilerplate.com/?ref=abptmpl"), - // new MenuItem("Templates", "", "", "https://aspnetboilerplate.com/Templates?ref=abptmpl"), - // new MenuItem("Samples", "", "", "https://aspnetboilerplate.com/Samples?ref=abptmpl"), - // new MenuItem("Documents", "", "", "https://aspnetboilerplate.com/Pages/Documents?ref=abptmpl") - // ]), - // new MenuItem("ASP.NET Zero", "", "", "", [ - // new MenuItem("Home", "", "", "https://aspnetzero.com?ref=abptmpl"), - // new MenuItem("Description", "", "", "https://aspnetzero.com/?ref=abptmpl#description"), - // new MenuItem("Features", "", "", "https://aspnetzero.com/?ref=abptmpl#features"), - // new MenuItem("Pricing", "", "", "https://aspnetzero.com/?ref=abptmpl#pricing"), - // new MenuItem("Faq", "", "", "https://aspnetzero.com/Faq?ref=abptmpl"), - // new MenuItem("Documents", "", "", "https://aspnetzero.com/Documents?ref=abptmpl") - // ]) - // ]) ]; constructor( diff --git a/SystemKonkursow/4.2.1/angular/src/app/profile/profile.component.ts b/SystemKonkursow/4.2.1/angular/src/app/profile/profile.component.ts index cda0ae4..58f5947 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/profile/profile.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/profile/profile.component.ts @@ -62,9 +62,10 @@ export class ProfileComponent extends AppComponentBase implements OnInit, OnDest public saveProfile(): void { this.profile.participantClass = +this.profile.participantClass; this.userProfileService.updateProfile(this.profile) - .pipe(finalize(() => { this.router.navigate(['app/home']); })) + .pipe(finalize(() => { })) .subscribe(() => { this.notify.success(this.l('Zapisano profil')); + this.router.navigate(['app/home']); }); } }