From 79b87ddfbc146f5d1e72f472415ca563d628c404 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 10 Dec 2018 19:23:13 -0600 Subject: [PATCH] AlgoDefinitionTemplateVM - add 'abbreviation' property (for ladder 'favorites' buttons) --- .../Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs b/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs index 284fe629d..34cbcb172 100644 --- a/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs +++ b/src/client/spark/Modules/Trading/AlgoStudio/VM/AlgoDefinitionTemplateVM.cs @@ -15,6 +15,7 @@ namespace mbts.spark { readonly DeferrableActionWrapper _change_logger; readonly DelegateProperty _can_undo, _can_redo, _is_dirty; readonly Property _is_default; + readonly Property _abbreviation; Snapshot _committed; string _name; @@ -25,6 +26,7 @@ namespace mbts.spark { this.owner = owner; vm_key = string.IsNullOrEmpty(id) ? new VMKey(Guid.NewGuid()) : new VMKey(id); _name = name; + _abbreviation = backing(nameof(abbreviation), name); _is_default = backing(nameof(is_default), false); algo_root = OrderTypeVMFactory.create(model, definition.CustomCase, OrderTypeEditingPermissions.AllowEditValues); algo_root.load_from(definition); @@ -68,6 +70,7 @@ namespace mbts.spark { } } } + public string abbreviation { get => _abbreviation.Value; set => _abbreviation.set(value); } public bool is_dirty => _is_dirty.Value; public bool can_redo => _can_redo.Value; public bool can_undo => _can_undo.Value;