From 8c65d7c54a546d63d45d20242e9b6f7982ad0cef Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 30 Aug 2015 02:14:51 +0200 Subject: [PATCH] Improved shown not linked email addresses. --- app/assets/javascripts/app/controllers/_channel/email.js.coffee | 2 +- .../app/views/channel/email_account_overview.jst.eco | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_channel/email.js.coffee b/app/assets/javascripts/app/controllers/_channel/email.js.coffee index 703beef20..7764bdb1b 100644 --- a/app/assets/javascripts/app/controllers/_channel/email.js.coffee +++ b/app/assets/javascripts/app/controllers/_channel/email.js.coffee @@ -253,7 +253,7 @@ class App.ChannelEmailAccountOverview extends App.Controller email_addresses_all = App.EmailAddress.all() email_addresses_not_used = [] for email_address in email_addresses_all - if !email_address.channel_id || !App.Channel.exists(email_address.channel_id) + if !email_address.channel_id || email_address.channel_id is '' email_addresses_not_used.push email_address # get channels 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 7af1f5c68..ddd0ff59a 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 @@ -4,7 +4,7 @@

<%- @T('Fixed email addresses') %>

<% end %>