mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
Rename
This commit is contained in:
parent
0e1411731d
commit
eb53b6166a
@ -69,9 +69,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"Cancel" : {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
"Create a new one by clicking here." : {
|
"Create a new one by clicking here." : {
|
||||||
|
|
||||||
@ -294,6 +291,36 @@
|
|||||||
},
|
},
|
||||||
"Rename" : {
|
"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" : {
|
"Secret Agent Is Not Running" : {
|
||||||
|
|
||||||
@ -510,9 +537,6 @@
|
|||||||
},
|
},
|
||||||
"Touch ID Prompt" : {
|
"Touch ID Prompt" : {
|
||||||
|
|
||||||
},
|
|
||||||
"Type your new name for \"%@\" below." : {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
"Update" : {
|
"Update" : {
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ struct RenameSecretView<StoreType: SecretStoreModifiable>: View {
|
|||||||
.padding()
|
.padding()
|
||||||
VStack {
|
VStack {
|
||||||
HStack {
|
HStack {
|
||||||
Text("Type your new name for \"\(secret.name)\" below.")
|
Text("rename_title_\(secret.name)")
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
HStack {
|
HStack {
|
||||||
@ -28,10 +28,10 @@ struct RenameSecretView<StoreType: SecretStoreModifiable>: View {
|
|||||||
}
|
}
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
Button("Rename", action: rename)
|
Button("rename_rename_button", action: rename)
|
||||||
.disabled(newName.count == 0)
|
.disabled(newName.count == 0)
|
||||||
.keyboardShortcut(.return)
|
.keyboardShortcut(.return)
|
||||||
Button("Cancel") {
|
Button("rename_cancel_button") {
|
||||||
dismissalBlock(false)
|
dismissalBlock(false)
|
||||||
}.keyboardShortcut(.cancelAction)
|
}.keyboardShortcut(.cancelAction)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user