mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-22 13:37:07 +00:00
Cleanup new sheet
This commit is contained in:
parent
5c8bcd9e78
commit
7e5fc3cb24
@ -11,16 +11,30 @@ struct CreateSecureEnclaveSecretView: View {
|
|||||||
var dismissalBlock: () -> ()
|
var dismissalBlock: () -> ()
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Form {
|
VStack {
|
||||||
Section(header: Text("Secret Name")) {
|
HStack {
|
||||||
|
Image(nsImage: NSApp.applicationIconImage)
|
||||||
|
.resizable()
|
||||||
|
.frame(width: 64, height: 64)
|
||||||
|
.padding()
|
||||||
|
VStack {
|
||||||
|
HStack {
|
||||||
|
Text("Create a New Secret").bold()
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
HStack {
|
||||||
|
Text("Name:")
|
||||||
TextField("Name", text: $name)
|
TextField("Name", text: $name)
|
||||||
}
|
}
|
||||||
Section {
|
HStack {
|
||||||
Toggle(isOn: $requiresAuthentication) {
|
Toggle(isOn: $requiresAuthentication) {
|
||||||
Text("Requires Authentication (Biometrics or Password)")
|
Text("Requires Authentication (Biometrics or Password)")
|
||||||
}
|
}
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.onExitCommand(perform: dismissalBlock)
|
||||||
}
|
}
|
||||||
Section {
|
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
Button(action: dismissalBlock) {
|
Button(action: dismissalBlock) {
|
||||||
@ -30,10 +44,7 @@ struct CreateSecureEnclaveSecretView: View {
|
|||||||
Text("Create")
|
Text("Create")
|
||||||
}.disabled(name.isEmpty)
|
}.disabled(name.isEmpty)
|
||||||
}
|
}
|
||||||
}
|
}.padding()
|
||||||
}
|
|
||||||
.padding()
|
|
||||||
.onExitCommand(perform: dismissalBlock)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func save() {
|
func save() {
|
||||||
|
Loading…
Reference in New Issue
Block a user