mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 16:45:18 +08:00
Merge pull request #946 from okriuchykhin/ok_SCI_1875_v3
Fix addons display in info modal [SCI-1875]
This commit is contained in:
commit
9fd1f81f20
2 changed files with 6 additions and 2 deletions
|
@ -17,7 +17,7 @@ module ClientApi
|
||||||
def list_all_addons
|
def list_all_addons
|
||||||
Rails::Engine.subclasses
|
Rails::Engine.subclasses
|
||||||
.select { |c| c.name.start_with?('Scinote') }
|
.select { |c| c.name.start_with?('Scinote') }
|
||||||
.map(&:parent)
|
.map { |c| c.parent.to_s }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -30,7 +30,11 @@ export default (props: Props): Node => {
|
||||||
<strong>
|
<strong>
|
||||||
<FormattedMessage id="general.addon_versions" />
|
<FormattedMessage id="general.addon_versions" />
|
||||||
</strong>
|
</strong>
|
||||||
{addons.map((addon: string): Node => <p>{addon}</p>)}
|
{
|
||||||
|
addons.map(
|
||||||
|
(addon: string): Node => (<p key={addon}>{addon}</p>)
|
||||||
|
)
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
</Modal.Body>
|
</Modal.Body>
|
||||||
|
|
Loading…
Add table
Reference in a new issue