mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-21 16:47:24 +01:00
Changed username to key name
This commit is contained in:
@@ -24,8 +24,8 @@ struct SecretDetailView<SecretType: Secret>: View {
|
|||||||
.frame(minHeight: 200, maxHeight: .infinity)
|
.frame(minHeight: 200, maxHeight: .infinity)
|
||||||
}
|
}
|
||||||
|
|
||||||
var dashedUserName: String {
|
var dashedKeyName: String {
|
||||||
NSUserName().replacingOccurrences(of: " ", with: "-")
|
secret.name.replacingOccurrences(of: " ", with: "-")
|
||||||
}
|
}
|
||||||
|
|
||||||
var dashedHostName: String {
|
var dashedHostName: String {
|
||||||
@@ -36,7 +36,7 @@ struct SecretDetailView<SecretType: Secret>: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var keyString: String {
|
var keyString: String {
|
||||||
keyWriter.openSSHString(secret: secret, comment: "\(dashedUserName)@\(dashedHostName)")
|
keyWriter.openSSHString(secret: secret, comment: "\(dashedKeyName)@\(dashedHostName)")
|
||||||
}
|
}
|
||||||
|
|
||||||
func copy() {
|
func copy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user