Add assets_view_mode for result [SCI-9375]

This commit is contained in:
Anton 2023-09-25 16:42:27 +02:00
parent 2b9ae65a51
commit 254b55772d

View file

@ -10,7 +10,7 @@ class ResultSerializer < ActiveModel::Serializer
attributes :name, :id, :urls, :updated_at, :created_at_formatted, :updated_at_formatted, :user,
:my_module_id, :attachments_manageble, :marvinjs_enabled, :marvinjs_context, :type,
:wopi_enabled, :wopi_context, :created_at, :created_by, :archived, :assets_order,
:open_vector_editor_context, :comments_count
:open_vector_editor_context, :comments_count, :assets_view_mode
def marvinjs_enabled
MarvinJsService.enabled?