Skip to content

Commit

Permalink
fix: fix incorrect alart on webhook test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyupe committed Oct 7, 2024
1 parent 8266695 commit 603aa5c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Cafe.Matcha/Views/MainControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,13 @@ private void BTestWebhook_Click(object sender, RoutedEventArgs e)
case EventType.CompanyVoyageStatus:
Output.SendWebhook(new CompanyVoyageStatusDTO { }, webhook);
break;
case EventType.None:
MessageBox.Show("请选择事件类型", Data.Title);
break;
default:
MessageBox.Show(
string.Format("确认要删除 Webhook [{0}] 吗?", ViewModel.SelectedWebhook.Name),
Data.Title, MessageBoxButton.YesNo);
string.Format("暂不支持测试 [{0}] 事件", Enum.GetName(typeof(EventType), webhook.Event)),
Data.Title);
break;
}
}
Expand Down Expand Up @@ -541,7 +544,5 @@ private void BLogPause_Click(object sender, RoutedEventArgs e)
{
ViewModel.LogPause = !ViewModel.LogPause;
}


}
}

0 comments on commit 603aa5c

Please sign in to comment.