Skip to content

Commit

Permalink
Add link to server settings from node info page
Browse files Browse the repository at this point in the history
Before this, it was impossible to change the Spark server while
a working one is already configured.
  • Loading branch information
shesek committed Aug 26, 2018
1 parent c2dc51a commit 2011300
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/views/node.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { div, h2, img, p } from '@cycle/dom'
import { div, h2, img, p, a } from '@cycle/dom'
import { yaml, qruri } from './util'

exports.nodeInfo = async ({ info, peers, conf: { expert } }) => {
Expand All @@ -18,7 +18,8 @@ exports.nodeInfo = async ({ info, peers, conf: { expert } }) => {
, p('.d-block.d-sm-none.text-center.text-muted.break-all.mt-4', uri)
])
])
, !info.address[0] ? p('.text-muted.small.text-center', 'This node does not accept incoming connections.') : ''
, !info.address[0] ? p('.text-muted.small.text-center.mt-2', 'This node does not accept incoming connections.') : ''
, process.env.BUILD_TARGET != 'web' ? p('.text-center.mt-4', a('.btn.btn-secondary.btn-sm', { attrs: { href: 'settings.html', rel: 'external' }}, 'Server settings')) : ''
, expert ? yaml({ info, peers }) : ''
])
}

0 comments on commit 2011300

Please sign in to comment.