aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/TunnelViewModel.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-17 16:38:07 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-18 06:46:55 +0100
commit0f98312d150bfcbcfd90267462fdaf88d8f82517 (patch)
treea767875a717a3f4b4a34ae5b780693647e7a76fc /WireGuard/WireGuard/UI/TunnelViewModel.swift
parentmacOS: Nullify observationToken on prepareForReuse() (diff)
downloadwireguard-apple-0f98312d150bfcbcfd90267462fdaf88d8f82517.tar.xz
wireguard-apple-0f98312d150bfcbcfd90267462fdaf88d8f82517.zip
macOS: Tunnel detail: Make the Activate button part of the list view
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/TunnelViewModel.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift
index 20620fc..e6b00a1 100644
--- a/WireGuard/WireGuard/UI/TunnelViewModel.swift
+++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift
@@ -15,6 +15,7 @@ class TunnelViewModel {
case mtu
case dns
case status
+ case toggleStatus
var localizedUIString: String {
switch self {
@@ -27,6 +28,7 @@ class TunnelViewModel {
case .mtu: return tr("tunnelInterfaceMTU")
case .dns: return tr("tunnelInterfaceDNS")
case .status: return tr("tunnelInterfaceStatus")
+ case .toggleStatus: return ""
}
}
}