Added alert banners when connection is lost

pull/376/head
katibest 6 years ago committed by Stamates
parent ab1eb28a45
commit 71f89b0c07
  1. 1
      apps/explorer_web/assets/css/app.scss
  2. 12
      apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex

@ -43,6 +43,7 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "node_modules/bootstrap/scss/forms";
@import "node_modules/bootstrap/scss/tooltip";
@import "node_modules/bootstrap/scss/badge";
@import "node_modules/bootstrap/scss/alert";
//Custom theme
@import "theme/fonts";

@ -72,14 +72,14 @@
<div class="card-body">
<div data-selector="channel-batching-message" style="display:none;">
<button data-selector="reload-button">
<span data-selector="channel-batching-count"></span> <%= gettext "more messages have come in" %>
</button>
<div data-selector="reload-button" class="alert alert-info">
<a href="#" class="alert-link" data-selector="channel-batching-count"><%= gettext "More messages have come in" %></a>
</div>
</div>
<div data-selector="channel-disconnected-message" style="display:none;">
<button data-selector="reload-button">
<%= gettext "connection lost, click to load newer transactions" %>
</button>
<div data-selector="reload-button" class="alert alert-danger">
<a href="#" class="alert-link"><%= gettext "Connection Lost, click to load newer transactions" %></a>
</div>
</div>
<div class="dropdown float-right u-push-sm">
<button data-test="filter_dropdown" class="button button--secondary button--xsmall dropdown-toggle" type="button"

Loading…
Cancel
Save