mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-10-26 03:39:49 +00:00
fix(connectivity): move latency test into node actions
This commit is contained in:
@@ -30,6 +30,9 @@ struct CatalogNodeDetailView: View {
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.disabled(!(eligibility?.canActivate ?? false) || activation.isPending)
|
||||
if let module = workflow.connectivity {
|
||||
ConnectivityTestButton(module: module, node: node)
|
||||
}
|
||||
Button(
|
||||
workflow.isFavorite(nodeID)
|
||||
? String(localized: "取消收藏", table: "ServerDetails")
|
||||
|
||||
@@ -124,10 +124,8 @@ struct ConnectivityDetailView: View {
|
||||
var body: some View {
|
||||
TimelineView(.periodic(from: .now, by: 1)) { context in
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
HStack {
|
||||
Text(ConnectivityCopy.text(node.isGroup ? "最快响应延迟" : "连通性测试")).font(.headline)
|
||||
ConnectivityTestButton(module: module, node: node)
|
||||
}
|
||||
Text(ConnectivityCopy.text(node.isGroup ? "最快响应延迟" : "连通性测试"))
|
||||
.font(.headline)
|
||||
if node.isGroup {
|
||||
ConnectivityCell(module: module, node: node, workflow: workflow)
|
||||
let summary = module.summary(for: node.connectivityServerIDs, at: context.date)
|
||||
|
||||
Reference in New Issue
Block a user