aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/loading.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-01-25 07:39:33 +0800
committerGitHub <noreply@github.com>2017-01-25 07:39:33 +0800
commit70b8e640f0170281b92ac610e063351a74d5333d (patch)
treeb87831b7cf4acb06a0bca115b12e8be64210f455 /ui/app/components/loading.js
parent463a56ff54b0d850c86348e260e5f7c17b138ccb (diff)
parent23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8 (diff)
downloadtangerine-wallet-browser-70b8e640f0170281b92ac610e063351a74d5333d.tar.gz
tangerine-wallet-browser-70b8e640f0170281b92ac610e063351a74d5333d.tar.zst
tangerine-wallet-browser-70b8e640f0170281b92ac610e063351a74d5333d.zip
Merge branch 'dev' into i#1048
Diffstat (limited to 'ui/app/components/loading.js')
-rw-r--r--ui/app/components/loading.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/app/components/loading.js b/ui/app/components/loading.js
index ae735894f..88dc535df 100644
--- a/ui/app/components/loading.js
+++ b/ui/app/components/loading.js
@@ -12,7 +12,7 @@ function LoadingIndicator () {
}
LoadingIndicator.prototype.render = function () {
- var isLoading = this.props.isLoading
+ const { isLoading, loadingMessage } = this.props
return (
h(ReactCSSTransitionGroup, {
@@ -37,8 +37,14 @@ LoadingIndicator.prototype.render = function () {
h('img', {
src: 'images/loading.svg',
}),
+
+ showMessageIfAny(loadingMessage),
]) : null,
])
)
}
+function showMessageIfAny (loadingMessage) {
+ if (!loadingMessage) return null
+ return h('span', loadingMessage)
+}