Browse Source

Support migrating asset profile to MANUAL data source

pull/7376/head
Thomas Kaul 1 month ago
parent
commit
741258964c
  1. 2
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts
  2. 6
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

2
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

@ -217,6 +217,8 @@ export class GfAssetProfileDialogComponent implements OnInit {
} }
]; ];
protected readonly DataSource = DataSource;
protected readonly dateRangeOptions = [ protected readonly dateRangeOptions = [
{ {
label: $localize`Current week` + ' (' + $localize`WTD` + ')', label: $localize`Current week` + ' (' + $localize`WTD` + ')',

6
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

@ -162,7 +162,7 @@
<ng-container i18n>Cancel</ng-container> <ng-container i18n>Cancel</ng-container>
</button> </button>
</form> </form>
@if (data.dataSource !== 'MANUAL') { @if (data.dataSource !== DataSource.MANUAL) {
<p class="my-1 px-1 text-muted" i18n>or</p> <p class="my-1 px-1 text-muted" i18n>or</p>
<button <button
color="accent" color="accent"
@ -170,7 +170,9 @@
type="button" type="button"
(click)="onConvertToManualDataSource()" (click)="onConvertToManualDataSource()"
> >
<ng-container i18n>Convert to MANUAL</ng-container> <ng-container i18n
>Convert to {{ DataSource.MANUAL }}</ng-container
>
</button> </button>
} }
</div> </div>

Loading…
Cancel
Save