diff --git a/frontend/src/app/Views/dashboard/dashboard.component.html b/frontend/src/app/Views/dashboard/dashboard.component.html index 4c3fb73..4aa160b 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.html +++ b/frontend/src/app/Views/dashboard/dashboard.component.html @@ -25,7 +25,7 @@ - ISIN + ISIN/Symbol {{ element.isin }} diff --git a/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts b/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts index 96d6f97..3ed83e2 100644 --- a/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts +++ b/frontend/src/app/Views/dashboard/user-dialog/user-dialog.component.ts @@ -37,7 +37,7 @@ export class UserDialogComponent { this.data.isin, this.data.time, +this.data.count, - +this.data.price.toFixed(2) * -1 + +this.data.price.toFixed(2) ) .subscribe((data) => { console.log(data); diff --git a/frontend/src/app/Views/profile/profile.component.ts b/frontend/src/app/Views/profile/profile.component.ts index 75c41c3..7db404d 100644 --- a/frontend/src/app/Views/profile/profile.component.ts +++ b/frontend/src/app/Views/profile/profile.component.ts @@ -45,7 +45,10 @@ export class ProfileComponent implements OnInit { }); } - onSubmit() { + /** + * Determines whether submit on + */ + onSubmit(): void { if (this.userId != '') { console.log(this.userId); this.profileService @@ -56,6 +59,9 @@ export class ProfileComponent implements OnInit { } } + /** + * Updates user + */ updateUser() { const { username, email, password } = this.form; this.profileService @@ -65,6 +71,10 @@ export class ProfileComponent implements OnInit { }); } + /** + * Opens dialog + * @param action + */ openDialog(action: string) { const dialogRef = this.dialog.open(ConfirmationDialogComponent, { width: '50vw', @@ -82,6 +92,9 @@ export class ProfileComponent implements OnInit { }); } + /** + * Opens help + */ openHelp() { const dialogRef = this.dialog.open(HelpDialogComponent, { width: '50vw',