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 -->
<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>
</ng-container>

View File

@ -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);

View File

@ -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',