fix channel issues

pull/615/head
Stamates 6 years ago
parent d494036e56
commit 113e242296
  1. 7
      apps/block_scout_web/lib/block_scout_web/channels/address_channel.ex
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/address/_balance_card.html.eex

@ -4,7 +4,7 @@ defmodule BlockScoutWeb.AddressChannel do
""" """
use BlockScoutWeb, :channel use BlockScoutWeb, :channel
alias BlockScoutWeb.{AddressInternalTransactionView, AddressTransactionView, AddressView} alias BlockScoutWeb.{AddressInternalTransactionView, AddressView, TransactionView}
alias Phoenix.View alias Phoenix.View
intercept(["balance_update", "count", "internal_transaction", "transaction"]) intercept(["balance_update", "count", "internal_transaction", "transaction"])
@ -47,7 +47,6 @@ defmodule BlockScoutWeb.AddressChannel do
View.render_to_string( View.render_to_string(
AddressInternalTransactionView, AddressInternalTransactionView,
"_internal_transaction.html", "_internal_transaction.html",
locale: socket.assigns.locale,
address: address, address: address,
internal_transaction: internal_transaction internal_transaction: internal_transaction
) )
@ -66,8 +65,8 @@ defmodule BlockScoutWeb.AddressChannel do
rendered = rendered =
View.render_to_string( View.render_to_string(
AddressTransactionView, TransactionView,
"_transaction.html", "_tile.html",
address: address, address: address,
transaction: transaction transaction: transaction
) )

@ -9,7 +9,7 @@
data-usd-exchange-rate="<%= @exchange_rate.usd_value %>"> data-usd-exchange-rate="<%= @exchange_rate.usd_value %>">
</span> </span>
<div class="mt-3" data-token-balance-dropdown data-api_path="<%= address_token_balance_path(@conn, :index, @address.hash) %>"> <div class="mt-3" data-token-balance-dropdown data-api_path="<%= address_token_balance_path(BlockScoutWeb.Endpoint, :index, @address.hash) %>">
<p data-loading class="mb-0 text-light" style="display: none;"> <p data-loading class="mb-0 text-light" style="display: none;">
<i class="fa fa-spinner fa-spin"></i> <i class="fa fa-spinner fa-spin"></i>
<%= gettext("Fetching tokens...") %> <%= gettext("Fetching tokens...") %>

Loading…
Cancel
Save