2019-08-14 09:48:44 +00:00
|
|
|
class DashboardController < ActionController::Base
|
2020-05-12 07:15:28 +00:00
|
|
|
before_action :set_global_config
|
2020-11-24 13:04:31 +00:00
|
|
|
include SwitchLocale
|
2020-05-12 07:15:28 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
layout 'vueapp'
|
|
|
|
|
2019-10-20 08:47:26 +00:00
|
|
|
def index; end
|
2020-05-12 07:15:28 +00:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_global_config
|
|
|
|
@global_config = GlobalConfig.get(
|
|
|
|
'LOGO',
|
|
|
|
'LOGO_THUMBNAIL',
|
|
|
|
'INSTALLATION_NAME',
|
|
|
|
'WIDGET_BRAND_URL',
|
|
|
|
'TERMS_URL',
|
|
|
|
'PRIVACY_URL',
|
2020-07-26 07:24:50 +00:00
|
|
|
'DISPLAY_MANIFEST',
|
|
|
|
'CREATE_NEW_ACCOUNT_FROM_DASHBOARD'
|
2020-07-26 16:20:59 +00:00
|
|
|
).merge(
|
|
|
|
APP_VERSION: Chatwoot.config[:version]
|
2020-05-12 07:15:28 +00:00
|
|
|
)
|
|
|
|
end
|
2019-10-20 08:47:26 +00:00
|
|
|
end
|