Skip to content
Snippets Groups Projects
Commit 395d9df2 authored by ali asaria's avatar ali asaria
Browse files

show version of gallery plugins (fix)

parent 8c17e061
No related branches found
No related tags found
No related merge requests found
......@@ -57,14 +57,17 @@ export default function PluginCard({
</Typography>
<Typography level="body-md" fontSize="sm" sx={{ mt: 0.5, mb: 0.5 }}>
{plugin.uniqueId}&nbsp;
{plugin?.gallery_version &&
(plugin?.version != plugin?.gallery_version ? (
{plugin?.gallery_version ? (
plugin?.version != plugin?.gallery_version ? (
<Chip color="danger">v{plugin.version} Needs Upgrade</Chip>
) : (
<>
<Chip color="success">v{plugin.version}</Chip>
</>
))}
)
) : (
<Chip color="warning">v{plugin.version}</Chip>
)}
</Typography>
<Typography level="title-sm" fontSize="sm" sx={{ mt: 0.5, mb: 0.5 }}>
<b>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment