Feature/add comment to activity (#1097)

* Add comment to activity

* Update changelog
This commit is contained in:
Thomas Kaul
2022-07-27 21:07:27 +02:00
committed by GitHub
parent 678f1f0051
commit 81217b35ef
12 changed files with 77 additions and 5 deletions

View File

@@ -347,6 +347,15 @@
</mat-menu>
</th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell>
<button
*ngIf="element.comment && !this.showActions"
class="mx-1 no-min-width px-2"
mat-button
title="Note"
(click)="onOpenComment(element.comment)"
>
<ion-icon name="document-text-outline"></ion-icon>
</button>
<button
*ngIf="this.showActions"
class="mx-1 no-min-width px-2"

View File

@@ -171,6 +171,10 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy {
this.import.emit();
}
public onOpenComment(aComment: string) {
alert(aComment);
}
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset): void {
this.router.navigate([], {
queryParams: { dataSource, symbol, positionDetailDialog: true }