mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 14:15:09 +03:00
Always show peer add button
This commit is contained in:
parent
b0c3d045a3
commit
f0c29a8a3e
1 changed files with 11 additions and 13 deletions
|
@ -98,7 +98,6 @@ struct PeersView: View {
|
||||||
.navigationTitle("Peers")
|
.navigationTitle("Peers")
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
if editMode!.wrappedValue.isEditing {
|
|
||||||
Button("Add", systemImage: "plus") {
|
Button("Add", systemImage: "plus") {
|
||||||
//appDelegate.yggdrasilConfig.peers.append("")
|
//appDelegate.yggdrasilConfig.peers.append("")
|
||||||
addPeerURI = ""
|
addPeerURI = ""
|
||||||
|
@ -111,7 +110,6 @@ struct PeersView: View {
|
||||||
} message: {
|
} message: {
|
||||||
Text("Specify the peer URI to add.")
|
Text("Specify the peer URI to add.")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
EditButton()
|
EditButton()
|
||||||
.onChange(of: editMode!.wrappedValue) { edit in
|
.onChange(of: editMode!.wrappedValue) { edit in
|
||||||
if !edit.isEditing {
|
if !edit.isEditing {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue