1 feat: 为MqttServerDetailView添加取消关联功能

2
   3 - 在MqttServerDetailView的DataGrid右键菜单中添加"取消关联"选项
   4 - 实现UnassignAlias命令,允许用户从MQTT服务器取消关联变量
   5 - 使用确认对话框以防止误操作
   6 - 集成现有的删除API来实际移除变量与MQTT服务器的关联
   7 - 更新UI以提供用户反馈
   8
   9 此功能允许用户通过右键菜单轻松取消MQTT服务器与变量的关联。
This commit is contained in:
2025-10-11 19:56:59 +08:00
parent 2ada4246ff
commit e78a7981e1
4 changed files with 83 additions and 52 deletions

View File

@@ -439,6 +439,9 @@
Command="{Binding ModifyAliasCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}, Path=SelectedItems[0]}"
Header="修改发送名称" />
<MenuItem
Command="{Binding UnassignAliasCommand}"
Header="取消关联" />
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.Columns>