small changes

This commit is contained in:
Przemysław Stawujak 2019-01-15 18:33:48 +01:00
parent 912cbdbecf
commit 29caf98af5
2 changed files with 2 additions and 17 deletions

View File

@ -21,22 +21,6 @@ export class SideBarNavComponent extends AppComponentBase {
new MenuItem(this.l("Role"), "Pages.Roles", "local_offer", "/app/roles"), new MenuItem(this.l("Role"), "Pages.Roles", "local_offer", "/app/roles"),
new MenuItem(this.l("O projekcie"), "", "info", "/app/about"), 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( constructor(

View File

@ -62,9 +62,10 @@ export class ProfileComponent extends AppComponentBase implements OnInit, OnDest
public saveProfile(): void { public saveProfile(): void {
this.profile.participantClass = +this.profile.participantClass; this.profile.participantClass = +this.profile.participantClass;
this.userProfileService.updateProfile(this.profile) this.userProfileService.updateProfile(this.profile)
.pipe(finalize(() => { this.router.navigate(['app/home']); })) .pipe(finalize(() => { }))
.subscribe(() => { .subscribe(() => {
this.notify.success(this.l('Zapisano profil')); this.notify.success(this.l('Zapisano profil'));
this.router.navigate(['app/home']);
}); });
} }
} }