Skip to content

Commit

Permalink
Peers to top of status list
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaschilling committed Jul 2, 2020
1 parent 931cd00 commit ab39ca1
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions add-on/src/popup/browser-action/gateway-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,24 @@ module.exports = function gatewayStatus ({
const api = ipfsApiUrl && ipfsNodeType === 'embedded' ? 'js-ipfs' : ipfsApiUrl
return html`
<ul class="fade-in list mv0 pv2 ph3 white">
${statusEntry({
label: 'panel_statusGatewayAddress',
value: gatewayAddress,
check: gatewayAddress,
itemClass: 'mb1'
})}
${statusEntry({
label: 'panel_statusApiAddress',
value: api,
check: gatewayVersion,
itemClass: 'mb1'
})}
${statusEntry({
label: 'panel_statusSwarmPeers',
labelLegend: 'panel_statusSwarmPeersTitle',
value: swarmPeers,
check: swarmPeers,
valueClass: 'fw9'
})}
${statusEntry({
label: 'panel_statusSwarmPeers',
labelLegend: 'panel_statusSwarmPeersTitle',
value: swarmPeers,
check: swarmPeers,
valueClass: 'mb1'
})}
${statusEntry({
label: 'panel_statusGatewayAddress',
value: gatewayAddress,
check: gatewayAddress,
itemClass: 'mb1'
})}
${statusEntry({
label: 'panel_statusApiAddress',
value: api,
check: gatewayVersion,
})}
</ul>
`
}

0 comments on commit ab39ca1

Please sign in to comment.