mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins Catalog: Set external manage link to installation tab (#40994)
* feat(catalog): set external manage link to installation tab * fix(catalog): use pluginCatalogURL when getting external manage link
This commit is contained in:
parent
914d8d6f15
commit
5d98155b5f
@ -9,7 +9,7 @@ type ExternallyManagedButtonProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function ExternallyManagedButton({ pluginId, pluginStatus }: ExternallyManagedButtonProps) {
|
export function ExternallyManagedButton({ pluginId, pluginStatus }: ExternallyManagedButtonProps) {
|
||||||
const externalManageLink = getExternalManageLink(pluginId);
|
const externalManageLink = `${getExternalManageLink(pluginId)}/?tab=installation`;
|
||||||
|
|
||||||
if (pluginStatus === PluginStatus.UPDATE) {
|
if (pluginStatus === PluginStatus.UPDATE) {
|
||||||
return (
|
return (
|
||||||
|
@ -180,7 +180,7 @@ export function mapToCatalogPlugin(local?: LocalPlugin, remote?: RemotePlugin, e
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getExternalManageLink = (pluginId: string) => `https://grafana.com/grafana/plugins/${pluginId}`;
|
export const getExternalManageLink = (pluginId: string) => `${config.pluginCatalogURL}${pluginId}`;
|
||||||
|
|
||||||
export enum Sorters {
|
export enum Sorters {
|
||||||
nameAsc = 'nameAsc',
|
nameAsc = 'nameAsc',
|
||||||
|
Loading…
Reference in New Issue
Block a user