Plugins: Add dependency column in version table (#73991)

* Plugins: add dependency column in version table

* Closes #44052
This commit is contained in:
Hugo Kiyodi Oshiro 2023-08-29 16:38:31 +02:00 committed by GitHub
parent ab7e655737
commit 4084329193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ export const VersionList = ({ versions = [], installedVersion }: Props) => {
<tr>
<th>Version</th>
<th>Last updated</th>
<th>Grafana Dependency</th>
</tr>
</thead>
<tbody>
@ -46,6 +47,8 @@ export const VersionList = ({ versions = [], installedVersion }: Props) => {
<td className={isInstalledVersion ? styles.currentVersion : ''}>
{dateTimeFormatTimeAgo(version.createdAt)}
</td>
{/* Dependency */}
<td className={isInstalledVersion ? styles.currentVersion : ''}>{version.grafanaDependency || 'N/A'}</td>
</tr>
);
})}