1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

add version display to extensions

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-12-01 16:07:09 -05:00
parent d143b234b7
commit 30f7198c92
2 changed files with 10 additions and 1 deletions

View File

@ -27,6 +27,12 @@
background: $layoutBackground;
border-radius: $radius;
.version, .name {
code {
padding: unset;
}
}
.actions > button:not(:last-child) {
margin-right: $spacing / 2;
}

View File

@ -446,7 +446,7 @@ export class Extensions extends React.Component {
return extensions.map(extension => {
const { id, isEnabled, manifest } = extension;
const { name, description } = manifest;
const { name, description, version } = manifest;
const isUninstalling = this.extensionStateStore.extensionState.get(id)?.state === "uninstalling";
return (
@ -455,6 +455,9 @@ export class Extensions extends React.Component {
<div className="name">
{name}
</div>
<div className="version">
Version: <code className="version">{version}</code>
</div>
<div className="description">
{description}
</div>