Changed key name to user name

This commit is contained in:
Alex Lavallee 2021-01-18 00:55:57 -08:00
parent eeb6387839
commit 5b6e6dd3f3
No known key found for this signature in database
GPG Key ID: FF636FB2C9E94B03

View File

@ -24,10 +24,10 @@ struct SecretDetailView<SecretType: Secret>: View {
.frame(minHeight: 200, maxHeight: .infinity)
}
var dashedKeyName: String {
secret.name.replacingOccurrences(of: " ", with: "-")
var dashedUserName: String {
NSUserName().replacingOccurrences(of: " ", with: "-")
}
var dashedHostName: String {
["secretive", Host.current().localizedName, "local"]
.compactMap { $0 }