From 472d1cd453daf9883266a0d12e28b45785d6e963 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Mon, 14 Jan 2019 02:48:06 +0100 Subject: [PATCH] add loading state to a connect button when connecting to backend --- .../notifications/Context/components/Account/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/notifications/Context/components/Account/index.js b/src/components/notifications/Context/components/Account/index.js index a4924900..59d87299 100644 --- a/src/components/notifications/Context/components/Account/index.js +++ b/src/components/notifications/Context/components/Account/index.js @@ -8,6 +8,7 @@ import type { Props } from '../../index'; export default (props: Props) => { const { network, notification } = props.selectedAccount; if (!network || !notification) return null; + const blockchain = props.blockchain.find(b => b.shortcut === network.shortcut); if (notification.type === 'backend') { // special case: backend is down @@ -17,6 +18,7 @@ export default (props: Props) => { type="error" title={notification.title} message={notification.message} + isActionInProgress={blockchain && blockchain.connecting} actions={ [{ label: 'Connect',