FEATURE: Add dark mode option for category logos (#18460)

Adds a new upload field for a second dark mode category logo. 
This alternative will be used when the browser is in dark mode (similar to the global site setting for a dark logo).
This commit is contained in:
Jan Cernik
2022-10-07 12:00:44 -03:00
committed by GitHub
parent e391f71c04
commit 08476f17ff
28 changed files with 110 additions and 24 deletions

View File

@@ -34,6 +34,7 @@ class BasicCategorySerializer < ApplicationSerializer
:custom_fields
has_one :uploaded_logo, embed: :object, serializer: CategoryUploadSerializer
has_one :uploaded_logo_dark, embed: :object, serializer: CategoryUploadSerializer
has_one :uploaded_background, embed: :object, serializer: CategoryUploadSerializer
def include_parent_category_id?