|
|
@@ -272,6 +272,7 @@ public partial class DeviceDetailsWindow : Window
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ SetBusyState(true, "已提交,等待完成...");
|
|
|
ShowStatusMessage("配置任务已提交,正在保存并等待连通确认...", StatusMessageType.Info);
|
|
|
await PollTaskAsync(applyResult.Data.TaskId);
|
|
|
}
|
|
|
@@ -322,6 +323,11 @@ public partial class DeviceDetailsWindow : Window
|
|
|
|
|
|
if (task.Status is "success" or "failed" or "rolled_back")
|
|
|
{
|
|
|
+ if (task.Status is "success" or "rolled_back")
|
|
|
+ {
|
|
|
+ SetBusyState(true, string.Empty);
|
|
|
+ }
|
|
|
+
|
|
|
if (task.Status == "success")
|
|
|
{
|
|
|
_configValidated = false;
|
|
|
@@ -1088,6 +1094,7 @@ public partial class DeviceDetailsWindow : Window
|
|
|
{
|
|
|
_isBusy = isBusy;
|
|
|
BusyOverlay.Visibility = isBusy ? Visibility.Visible : Visibility.Collapsed;
|
|
|
+ BusyMessageTextBlock.Visibility = isBusy && message == string.Empty ? Visibility.Collapsed : Visibility.Visible;
|
|
|
BusyMessageTextBlock.Text = string.IsNullOrWhiteSpace(message) ? "正在处理,请稍候..." : message;
|
|
|
UpdateButtonStates();
|
|
|
}
|