This commit is contained in:
Max Goedjen 2024-01-04 17:53:35 -08:00
parent 0e1411731d
commit eb53b6166a
No known key found for this signature in database
2 changed files with 33 additions and 9 deletions

View File

@ -69,9 +69,6 @@
}
}
}
},
"Cancel" : {
},
"Create a new one by clicking here." : {
@ -294,6 +291,36 @@
},
"Rename" : {
},
"rename_cancel_button" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Cancel"
}
}
}
},
"rename_rename_button" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Rename"
}
}
}
},
"rename_title_%@" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Type your new name for %1$@ below."
}
}
}
},
"Secret Agent Is Not Running" : {
@ -510,9 +537,6 @@
},
"Touch ID Prompt" : {
},
"Type your new name for \"%@\" below." : {
},
"Update" : {

View File

@ -18,7 +18,7 @@ struct RenameSecretView<StoreType: SecretStoreModifiable>: View {
.padding()
VStack {
HStack {
Text("Type your new name for \"\(secret.name)\" below.")
Text("rename_title_\(secret.name)")
Spacer()
}
HStack {
@ -28,10 +28,10 @@ struct RenameSecretView<StoreType: SecretStoreModifiable>: View {
}
HStack {
Spacer()
Button("Rename", action: rename)
Button("rename_rename_button", action: rename)
.disabled(newName.count == 0)
.keyboardShortcut(.return)
Button("Cancel") {
Button("rename_cancel_button") {
dismissalBlock(false)
}.keyboardShortcut(.cancelAction)
}