Fix label template preview for print modal [SCI-10570]

This commit is contained in:
Andrej 2024-04-02 15:24:41 +02:00
parent fe6879a0e8
commit 726b96eecb
2 changed files with 3 additions and 2 deletions

View file

@ -272,7 +272,7 @@ export default {
templateOption(option) {
return `
<div class="label-template-option" data-toggle="tooltip" data-placement="right" title="${option.params.description}">
<img src="${option.params.icon}" style=""></img>
${option.params.icon}
${option.label}
</div>
`;

View file

@ -7,7 +7,8 @@ module Lists
attributes :name, :language_type, :urls, :type,
:default, :format, :modified_by, :created_by,
:created_at, :updated_at, :id, :icon_url, :description
:created_at, :updated_at, :id, :icon_url, :description,
:width_mm, :height_mm, :unit, :density
def icon_url
ActionController::Base.helpers.image_tag(