Frontend #190

Merged
kevinpauer merged 3 commits from frontend into main 2022-05-12 16:27:32 +00:00
3 changed files with 16 additions and 3 deletions
Showing only changes of commit 2a06f8a710 - Show all commits

View File

@ -25,7 +25,7 @@
<!-- Time Column --> <!-- Time Column -->
<ng-container matColumnDef="isin"> <ng-container matColumnDef="isin">
<th mat-header-cell *matHeaderCellDef>ISIN</th> <th mat-header-cell *matHeaderCellDef>ISIN/Symbol</th>
<td mat-cell *matCellDef="let element">{{ element.isin }}</td> <td mat-cell *matCellDef="let element">{{ element.isin }}</td>
</ng-container> </ng-container>

View File

@ -37,7 +37,7 @@ export class UserDialogComponent {
this.data.isin, this.data.isin,
this.data.time, this.data.time,
+this.data.count, +this.data.count,
+this.data.price.toFixed(2) * -1 +this.data.price.toFixed(2)
) )
.subscribe((data) => { .subscribe((data) => {
console.log(data); console.log(data);

View File

@ -45,7 +45,10 @@ export class ProfileComponent implements OnInit {
}); });
} }
onSubmit() { /**
* Determines whether submit on
*/
onSubmit(): void {
if (this.userId != '') { if (this.userId != '') {
console.log(this.userId); console.log(this.userId);
this.profileService this.profileService
@ -56,6 +59,9 @@ export class ProfileComponent implements OnInit {
} }
} }
/**
* Updates user
*/
updateUser() { updateUser() {
const { username, email, password } = this.form; const { username, email, password } = this.form;
this.profileService this.profileService
@ -65,6 +71,10 @@ export class ProfileComponent implements OnInit {
}); });
} }
/**
* Opens dialog
* @param action
*/
openDialog(action: string) { openDialog(action: string) {
const dialogRef = this.dialog.open(ConfirmationDialogComponent, { const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
width: '50vw', width: '50vw',
@ -82,6 +92,9 @@ export class ProfileComponent implements OnInit {
}); });
} }
/**
* Opens help
*/
openHelp() { openHelp() {
const dialogRef = this.dialog.open(HelpDialogComponent, { const dialogRef = this.dialog.open(HelpDialogComponent, {
width: '50vw', width: '50vw',