From a16d2c653d746ad3e9729aa9b842a5d726e3788d Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Thu, 30 Jul 2020 23:58:42 +0530 Subject: [PATCH] Chore: Update mailer to remove hardcoded twitter link (#1103) --- app/controllers/widgets_controller.rb | 2 +- app/javascript/shared/store/globalConfig.js | 2 ++ app/javascript/widget/components/Branding.vue | 12 ++++++----- app/mailers/application_mailer.rb | 2 +- app/views/layouts/mailer.html.erb | 20 +++++++++---------- config/installation_config.yml | 2 ++ 6 files changed, 22 insertions(+), 18 deletions(-) diff --git a/app/controllers/widgets_controller.rb b/app/controllers/widgets_controller.rb index c396de4ce..957203f16 100644 --- a/app/controllers/widgets_controller.rb +++ b/app/controllers/widgets_controller.rb @@ -11,7 +11,7 @@ class WidgetsController < ActionController::Base private def set_global_config - @global_config = GlobalConfig.get('LOGO_THUMBNAIL', 'INSTALLATION_NAME', 'WIDGET_BRAND_URL') + @global_config = GlobalConfig.get('LOGO_THUMBNAIL', 'BRAND_NAME', 'WIDGET_BRAND_URL') end def set_web_widget diff --git a/app/javascript/shared/store/globalConfig.js b/app/javascript/shared/store/globalConfig.js index 4b1e75162..c761781c6 100644 --- a/app/javascript/shared/store/globalConfig.js +++ b/app/javascript/shared/store/globalConfig.js @@ -1,6 +1,7 @@ const { APP_VERSION: appVersion, CREATE_NEW_ACCOUNT_FROM_DASHBOARD: createNewAccountFromDashboard, + BRAND_NAME: brandName, INSTALLATION_NAME: installationName, LOGO_THUMBNAIL: logoThumbnail, LOGO: logo, @@ -12,6 +13,7 @@ const { const state = { appVersion, createNewAccountFromDashboard, + brandName, installationName, logo, logoThumbnail, diff --git a/app/javascript/widget/components/Branding.vue b/app/javascript/widget/components/Branding.vue index 4c6c787bf..2c4e4fc35 100644 --- a/app/javascript/widget/components/Branding.vue +++ b/app/javascript/widget/components/Branding.vue @@ -1,18 +1,17 @@