Skip to content
Snippets Groups Projects
Commit 27c86c2c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

list of plugins has version

parent 9160724c
No related branches found
No related tags found
2 merge requests!264Resolve "add support for matomo",!240Resolve "Plugin panel should display plugin versions"
Pipeline #94974 passed
minerva-front (18.0.0~beta.3) stable; urgency=medium
* Bugfix: license info styling (#280)
* Bugfix: list of plugins did not contain version (#287)
-- Piotr Gawron <piotr.gawron@uni.lu> Thu, 26 Sep 2024 13:00:00 +0200
......
......@@ -48,7 +48,7 @@ describe('AvailablePluginsDrawer - component', () => {
},
});
const pluginLabel = screen.getByText(currentPlugin.name);
const pluginLabel = screen.getByText(`${currentPlugin.name} (${currentPlugin.version})`);
expect(pluginLabel).toBeInTheDocument();
},
);
......
......@@ -43,7 +43,7 @@ describe('LoadPlugin - component', () => {
it('renders plugin name', () => {
renderComponent({ plugin });
const title = screen.getByText(plugin.name);
const title = screen.getByText(`${plugin.name} (${plugin.version})`);
expect(title).toBeInTheDocument();
});
......
......@@ -22,7 +22,9 @@ export const LoadPlugin = ({ plugin }: Props): JSX.Element => {
return (
<div className="flex w-full items-center justify-between text-sm">
<span className="text-cetacean-blue">{plugin.name}</span>
<span className="text-cetacean-blue">
{plugin.name} ({plugin.version})
</span>
<Button
variantStyles="secondary"
className="h-10 self-end rounded-e rounded-s text-xs font-medium"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment