Chatwoot/app/models
Sony Mathew 96efc44b82
Chore: Feature lock email settings in UI (#1065)
* Chore: Feature lock email settings in UI

The email settings under account settings needed to be
feature locked in a way different from teh current way for it
to be enabled for accounts in a self hosted scenario.

Some refactorings were also done along with this change.

1. There was a feature flag defined in code in account model called
domain_emails_enabled was used to check if the inbound emails was
enabled for the account. But there was already a feature flag called
"inbound_emails" defined in features.yml. So changed to use this to
check if inbound emails are enabled for an account.
2. Renamed and re-purposed existing `domain_emails_enabled` to
`custom_email_domain_enabled` to use for feature toggling the UI
for email settings.
3. To enable & disable multiple features using the featurable concern
we were passing an array of values. Changed this to accept a comma
separated set of values.

* Chore: Feature lock email settings in UI

Fixed the specs for accounts controller & removed
unneccessary code from Account seetings component in UI

* Chore: Convert newlines to <br>s

Removed the layout used while sending replies in
conversation continuity.

Converted the newlines in the messages to <br/> tags
for the correct HTML rendering.

* Chore: Bug fix in reply email domain

Renamed the function custom_email_domain_enabled  to
inbound_email_enabled.

Fixed bug on setting reply emails's domain.
2020-07-19 23:08:07 +05:30
..
channel Chore: Remove dead code related to billing (#935) 2020-06-07 20:31:48 +05:30
concerns Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
integrations Feature: Slack - receive messages, create threads, send replies (#974) 2020-06-22 13:19:26 +05:30
access_token.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
account.rb Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
account_user.rb Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
agent_bot.rb Chore: Convert Message Sender to polymorphic (#740) 2020-06-27 21:34:53 +05:30
agent_bot_inbox.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
application_record.rb Remove unused method from ApplicationRecord (#257) 2019-11-24 02:51:33 +05:30
attachment.rb Chore: Add Facebook app set up documentation (#647) 2020-03-28 11:43:02 +05:30
canned_response.rb Annotations (#327) 2019-11-30 19:09:55 +05:30
contact.rb Chore: Convert Message Sender to polymorphic (#740) 2020-06-27 21:34:53 +05:30
contact_inbox.rb Feature: Rich Message Types (#610) 2020-04-10 16:42:37 +05:30
conversation.rb Chore: Refactor round robin logic (#1015) 2020-07-08 00:14:07 +05:30
event.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
inbox.rb Chore: Refactor round robin logic (#1015) 2020-07-08 00:14:07 +05:30
inbox_member.rb Chore: Refactor round robin logic (#1015) 2020-07-08 00:14:07 +05:30
installation_config.rb Feature: Installation global config (#839) (#840) 2020-05-10 22:40:36 +05:30
integrations.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
label.rb Chore: Add default value for label color (#981) 2020-06-25 21:33:56 +05:30
message.rb Chore: Cleanup attachment handling for Facebook & Whatsapp (#1051) 2020-07-17 00:32:32 +05:30
notification.rb Chore: Fix issues with conversation data models (#1000) 2020-07-04 19:46:17 +05:30
notification_setting.rb Feature: User Notification Objects (#752) 2020-05-01 14:53:43 +05:30
notification_subscription.rb Chore: Firebase Cloud Messaging Support (#858) 2020-06-05 00:15:50 +05:30
plan.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
super_admin.rb Feature: Introduce Super Admins (#705) 2020-05-11 23:07:22 +05:30
telegram_bot.rb Annotations (#327) 2019-11-30 19:09:55 +05:30
user.rb Chore: Feature Flags for Channels (#1010) 2020-07-06 11:16:19 +05:30
webhook.rb Feature: Twilio SMS Channel (#658) 2020-04-05 22:11:27 +05:30