chore: Add support for dark mode logo (#7378)

This commit is contained in:
Pranav Raj S
2023-06-23 12:06:01 -07:00
committed by GitHub
parent f8e631a00c
commit 4f8ce7b597
4 changed files with 18 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ class DashboardController < ActionController::Base
def set_global_config
@global_config = GlobalConfig.get(
'LOGO', 'LOGO_THUMBNAIL',
'LOGO', 'LOGO_DARK', 'LOGO_THUMBNAIL',
'INSTALLATION_NAME',
'WIDGET_BRAND_URL', 'TERMS_URL',
'PRIVACY_URL',

View File

@@ -14,6 +14,7 @@ const {
INSTALLATION_NAME: installationName,
LOGO_THUMBNAIL: logoThumbnail,
LOGO: logo,
LOGO_DARK: logoDark,
PRIVACY_URL: privacyURL,
TERMS_URL: termsURL,
WIDGET_BRAND_URL: widgetBrandURL,
@@ -38,6 +39,7 @@ const state = {
hCaptchaSiteKey,
installationName,
logo,
logoDark,
logoThumbnail,
privacyURL,
termsURL,

View File

@@ -72,3 +72,5 @@
value: self-hosted
- name: CSML_EDITOR_HOST
value:
- name: LOGO_DARK
value: '/brand-assets/logo-dark.svg'

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB