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 { format, isSameMonth, isToday, parseISO } from 'date-fns';
import { addIcons } from 'ionicons'; import { addIcons } from 'ionicons';
import { import {
arrowDownCircleOutline,
createOutline, createOutline,
flagOutline, flagOutline,
readerOutline, readerOutline,
@ -168,6 +169,7 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit {
private userService: UserService private userService: UserService
) { ) {
addIcons({ addIcons({
arrowDownCircleOutline,
createOutline, createOutline,
flagOutline, flagOutline,
readerOutline, readerOutline,
@ -570,7 +572,9 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit {
fee: 0, fee: 0,
quantity: this.quantity, quantity: this.quantity,
symbol: this.SymbolProfile.symbol, symbol: this.SymbolProfile.symbol,
tags: [], tags: this.tags.map(({ id }) => {
return id;
}),
type: 'SELL', type: 'SELL',
unitPrice: this.marketPrice 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> ><span i18n>Close Holding</span>
</button> </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) { @if (data.hasPermissionToAccessAdminControl) {
<a <a
mat-stroked-button mat-stroked-button
@ -456,16 +466,6 @@
>...</a >...</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> </div>
</div> </div>

Loading…
Cancel
Save