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

@ -9,7 +9,7 @@
data-usd-exchange-rate="<%= @exchange_rate.usd_value %>">
</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;">
<i class="fa fa-spinner fa-spin"></i>
<%= gettext("Fetching tokens...") %>

Loading…
Cancel
Save