Browse Source

Minor improvements

pull/5832/head
Thomas Kaul 5 days ago
parent
commit
c1a3db927d
  1. 6
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts
  2. 20
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html

6
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts

@ -58,6 +58,7 @@ import { isUUID } from 'class-validator';
import { format, isSameMonth, isToday, parseISO } from 'date-fns';
import { addIcons } from 'ionicons';
import {
arrowDownCircleOutline,
createOutline,
flagOutline,
readerOutline,
@ -168,6 +169,7 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit {
private userService: UserService
) {
addIcons({
arrowDownCircleOutline,
createOutline,
flagOutline,
readerOutline,
@ -570,7 +572,9 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit {
fee: 0,
quantity: this.quantity,
symbol: this.SymbolProfile.symbol,
tags: [],
tags: this.tags.map(({ id }) => {
return id;
}),
type: 'SELL',
unitPrice: this.marketPrice
};

20
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html

@ -441,6 +441,16 @@
><span i18n>Close Holding</span>
</button>
}
@if (
dataSource?.data.length > 0 &&
data.hasPermissionToReportDataGlitch === true
) {
<a color="warn" mat-stroked-button [href]="reportDataGlitchMail"
><ion-icon class="mr-1" name="flag-outline" /><span i18n
>Report Data Glitch</span
>...</a
>
}
@if (data.hasPermissionToAccessAdminControl) {
<a
mat-stroked-button
@ -456,16 +466,6 @@
>...</a
>
}
@if (
dataSource?.data.length > 0 &&
data.hasPermissionToReportDataGlitch === true
) {
<a color="warn" mat-stroked-button [href]="reportDataGlitchMail"
><ion-icon class="mr-1" name="flag-outline" /><span i18n
>Report Data Glitch</span
>...</a
>
}
</div>
</div>
</div>

Loading…
Cancel
Save