Merge pull request #6293 from aignatov-bio/ai-sci-9375-add-selected-state-for-dropdown

Add assets_view_mode for result [SCI-9375]
This commit is contained in:
Martin Artnik 2023-09-25 16:44:18 +02:00 committed by GitHub
commit 80afa31632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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?