Skip to content

Commit

Permalink
fix: remove text from main UI for Quick Connect and put a help button…
Browse files Browse the repository at this point in the history
… instead.
  • Loading branch information
Fonta1n3 committed Dec 3, 2024
1 parent f3e60d3 commit 8271301
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions FullyNoded-Server/Views/BitcoinCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,26 @@ struct BitcoinCore: View {
)

VStack() {
Label("Quick Connect", systemImage: "qrcode")
.padding([.leading])
.frame(maxWidth: .infinity, alignment: .leading)
HStack() {
Label("Quick Connect", systemImage: "qrcode")
.padding([.leading])
.frame(maxWidth: .infinity, alignment: .leading)
Spacer()
Button {
showMessage(message: "The Quick Connect QR exports your rpc hostname (an onion or localhost) and the rpc port (combined these make up your nodes rpc address) which is required for FN to connect.\n\nThis QR does *NOT* include the FN-Server RPC credentials (it includes a dummy rpc user and password for security).\n\nYou must export and authorize your rpc user from FN mobile apps to FN-Server to complete your connection.\n\nTo do this: In FN navigate to Node Manager > + > Scan QR > update the rpc password in Node Credentials > Save the node > Export the rpcauth text from FN and use the below text field to add it to your bitcoin.conf.")
} label: {
Image(systemName: "questionmark.circle")
}
.padding([.trailing])
}


Button("Connect Fully Noded", systemImage: "qrcode") {
connectFN()
}
.padding([.leading, .trailing])
.frame(maxWidth: .infinity, alignment: .leading)
Text("Exports your onion (Tor) rpc hostname and rpc port (your nodes address) which is required for FN to connect. This QR does *NOT* include the FN-Server RPC credentials (it includes a dummy rpc user and password). You must export and authorize your rpc user from FN to FN-Server to complete your connection. To do this: In FN navigate to Node Manager > + > Scan QR > update the rpc password in Node Credentials > Save the node > Export the rpcauth text from FN and use the below button to authorize your FN rpc user.")
.foregroundStyle(.secondary)
.padding([.leading, .bottom, .trailing])


HStack() {
Text("Authorize an additional RPC user:")
Expand Down

0 comments on commit 8271301

Please sign in to comment.