Add MasterAgentName to UserStrategyDetailsViewModel and DataController

- Updated UserStrategyDetailsViewModel to include MasterAgentName property, which represents the agent name of the master bot's owner for copy trading bots.
- Modified DataController to populate the MasterAgentName field when returning strategy details.
This commit is contained in:
2025-11-21 14:28:19 +07:00
parent d3623350da
commit 1bec83a2ec
3 changed files with 8 additions and 2 deletions

View File

@@ -609,7 +609,8 @@ public class DataController : ControllerBase
Positions = positionViewModels,
Identifier = strategy.Identifier,
WalletBalances = walletBalances,
Ticker = strategy.Ticker
Ticker = strategy.Ticker,
MasterAgentName = strategy.MasterBotUser?.AgentName
};
}