fix: Update title in new ladder ticket when sec received

This commit is contained in:
John Colvin committed 2026-08-14 14:50:31 -04:00
1 parent 503a5e2715
commit eadd6a0706
1 file changed
+3 -1
@@ -29,6 +29,7 @@ class NewOrderTicketLadderVM : DisposableViewModelBase, IOrderModificationLadder
const uint numPriceRowsPerSide = 500;
readonly Property<SecurityImmutable> security;
readonly Property<string> title;
readonly Property<TickDisplaySettingsImmutable> priceDisplay;
readonly Property<TickDisplaySettingsImmutable> quantityDisplay;
readonly Property<user.settings.RegionalTickFactors> priceTick;
@@ -91,6 +92,7 @@ class NewOrderTicketLadderVM : DisposableViewModelBase, IOrderModificationLadder
}
security = backing(nameof(Security), bts.api.Security.Defaults.SecurityImmutable);
title = backing(nameof(Title), security.observe_current(true), s => s.ToString() ?? string.Empty, string.Empty);
priceTick = backing(nameof(PriceTick), user.settings.RegionalTickFactors.Default);
PropertiesVm = new(model, securityMdSource, accountsSource, propsSource.Select(p => p.order_props));
this.quantityDisplay = backing(nameof(QuantityDisplay), quantityDisplay ?? bts.api.Security.Defaults.quantity_display_settingsi);
@@ -226,7 +228,7 @@ class NewOrderTicketLadderVM : DisposableViewModelBase, IOrderModificationLadder
public event Action? RequestRecenter;
public SecurityImmutable Security => security.Value;
public string Title => Security.ToString() ?? string.Empty;
public string Title => title.Value;
public double Price { get; set; }
public user.settings.RegionalTickFactors PriceTick => priceTick.Value;
public TickDisplaySettingsImmutable PriceDisplay => priceDisplay.Value;