mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-30 16:08:29 +08:00
Fix label template preview for print modal [SCI-10570]
This commit is contained in:
parent
fe6879a0e8
commit
726b96eecb
2 changed files with 3 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ export default {
|
||||||
templateOption(option) {
|
templateOption(option) {
|
||||||
return `
|
return `
|
||||||
<div class="label-template-option" data-toggle="tooltip" data-placement="right" title="${option.params.description}">
|
<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}
|
${option.label}
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ module Lists
|
||||||
|
|
||||||
attributes :name, :language_type, :urls, :type,
|
attributes :name, :language_type, :urls, :type,
|
||||||
:default, :format, :modified_by, :created_by,
|
: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
|
def icon_url
|
||||||
ActionController::Base.helpers.image_tag(
|
ActionController::Base.helpers.image_tag(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue