diff --git a/app/assets/javascripts/app/controllers/_channel/email.js.coffee b/app/assets/javascripts/app/controllers/_channel/email.js.coffee index 339cce9b4..703beef20 100644 --- a/app/assets/javascripts/app/controllers/_channel/email.js.coffee +++ b/app/assets/javascripts/app/controllers/_channel/email.js.coffee @@ -236,12 +236,12 @@ class App.ChannelEmailAccountOverview extends App.Controller success: (data, status, xhr) => # load assets - App.Collection.loadAssets( data.assets ) + App.Collection.loadAssets(data.assets) - @render() + @render(accounts_fixed: data.accounts_fixed) ) - render: => + render: (params = {}) => # get channels channels = App.Channel.search( filter: { area: 'Email::Account' } ) @@ -260,9 +260,10 @@ class App.ChannelEmailAccountOverview extends App.Controller channel = App.Channel.search( filter: { area: 'Email::Notification', active: true } )[0] @html App.view('channel/email_account_overview')( - channels: channels + channels: channels email_addresses_not_used: email_addresses_not_used - channel: channel + channel: channel + accounts_fixed: params.accounts_fixed ) wizard: (e) => diff --git a/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco b/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco index a5836e926..7af1f5c68 100644 --- a/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco +++ b/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco @@ -1,5 +1,14 @@
<%- @T('Inbound') %> | -<%- @T('Outbound') %> | -<%- @T('Email Adresses') %> | -<%- @T('Action') %> | -||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- <%- @T('State') %>: <%- @T(channel.status_in || 'unknown') %> - - <%= channel.options.inbound.options.user %> - <%= channel.options.inbound.options.host %> (<%= channel.options.inbound.adapter %>) - - |
-
- <%- @T('State') %>: <%- @T(channel.status_out || 'unknown') %> - - <% if channel.options.outbound && channel.options.outbound.options: %> - <%= channel.options.outbound.options.user %> - <%= channel.options.outbound.options.host %> - <% end %> - (<%= channel.options.outbound.adapter %>) - |
-
-
|