From 2422c78ce20a032a81545bf8cc03394e12c599d5 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 3 Jun 2016 13:58:09 -0700 Subject: Add network loading indication --- ui/app/components/network.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ui/app/components') diff --git a/ui/app/components/network.js b/ui/app/components/network.js index 5f507f630..90c307ed6 100644 --- a/ui/app/components/network.js +++ b/ui/app/components/network.js @@ -19,6 +19,14 @@ Network.prototype.render = function() { if (networkNumber == undefined || networkNumber == "error") { hoverText = 'No Blockchain Connection' iconName = 'no-connection' + } else if (networkNumber == 'loading') { + return h('img', { + title: 'Contacting network...', + style: { + width: '27px', + }, + src: 'images/loading.svg', + }) } else if (networkNumber == 1) { hoverText = 'Main Ethereum Network' iconName = 'ethereum-network' -- cgit