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