Frontend #190
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user