Catch chainpad errors and display it in the UI

This commit is contained in:
yflory
2018-03-13 14:38:56 +01:00
parent b2df2ba341
commit e56d762409
6 changed files with 37 additions and 8 deletions

View File

@@ -1061,6 +1061,7 @@ define([
toolbar.errorState = function (state, error) {
toolbar.isErrorState = state;
if (state) { toolbar.connected = false; }
if (toolbar.spinner) {
if (!state) {
return void kickSpinner(toolbar, config);