on-demand: macOS: Tunnel detail: List SSIDs
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
b7f8f74b56
commit
63299a2752
|
@ -93,6 +93,7 @@
|
||||||
"tunnelOnDemandOnlySSIDs (%d)" = "Only %d SSIDs";
|
"tunnelOnDemandOnlySSIDs (%d)" = "Only %d SSIDs";
|
||||||
"tunnelOnDemandExceptSSID (%d)" = "Except %d SSID";
|
"tunnelOnDemandExceptSSID (%d)" = "Except %d SSID";
|
||||||
"tunnelOnDemandExceptSSIDs (%d)" = "Except %d SSIDs";
|
"tunnelOnDemandExceptSSIDs (%d)" = "Except %d SSIDs";
|
||||||
|
"tunnelOnDemandSSIDOptionDescriptionMac (%1$@: %2$@)" = "%1$@: %2$@";
|
||||||
|
|
||||||
"tunnelOnDemandSSIDViewTitle" = "SSIDs";
|
"tunnelOnDemandSSIDViewTitle" = "SSIDs";
|
||||||
"tunnelOnDemandSectionTitleSelectedSSIDs" = "SSIDs";
|
"tunnelOnDemandSectionTitleSelectedSSIDs" = "SSIDs";
|
||||||
|
|
|
@ -403,7 +403,15 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
|
||||||
case .onDemandSSIDRow:
|
case .onDemandSSIDRow:
|
||||||
let cell: KeyValueRow = tableView.dequeueReusableCell()
|
let cell: KeyValueRow = tableView.dequeueReusableCell()
|
||||||
cell.key = tr("macFieldOnDemandSSIDs")
|
cell.key = tr("macFieldOnDemandSSIDs")
|
||||||
cell.value = onDemandViewModel.ssidOption.localizedUIString
|
let value: String
|
||||||
|
if onDemandViewModel.ssidOption == .anySSID {
|
||||||
|
value = onDemandViewModel.ssidOption.localizedUIString
|
||||||
|
} else {
|
||||||
|
value = tr(format: "tunnelOnDemandSSIDOptionDescriptionMac (%1$@: %2$@)",
|
||||||
|
onDemandViewModel.ssidOption.localizedUIString,
|
||||||
|
onDemandViewModel.selectedSSIDs.joined(separator: ", "))
|
||||||
|
}
|
||||||
|
cell.value = value
|
||||||
cell.isKeyInBold = false
|
cell.isKeyInBold = false
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue