Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: show indicator that no network connection is established (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored Jun 10, 2020
1 parent f36d789 commit 463d4f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/renderer/SplashScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>

<div class="text-sm mb-2">
{{ $t('COMMON.INITIALIZING') }}
{{ loadingMessage }}
</div>
</div>

Expand Down Expand Up @@ -74,6 +74,13 @@ export default {
computed: {
version () {
return packageJson.version
},
loadingMessage () {
if (window.navigator.onLine) {
return this.$t('COMMON.INITIALIZING')
}
return this.$t('COMMON.NO_INTERNET_CONNECTION')
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/i18n/locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default {
HIDE_WALLET_BUTTON_TEXT: 'Hide text from wallet buttons',
IS_MARKET_CHART_ENABLED: 'Price chart on the dashboard',
INITIALIZING: 'Initializing...',
NO_INTERNET_CONNECTION: 'Initialization is taking longer than expected. Please check your internet connectivity.',
LANGUAGE: 'Application Language',
LEDGER: 'Ledger',
LEDGER_WALLET: 'This is a Ledger wallet',
Expand Down

0 comments on commit 463d4f5

Please sign in to comment.