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:
Jack Westbrook
2021-10-29 12:23:05 +02:00
committed by GitHub
parent 914d8d6f15
commit 5d98155b5f
2 changed files with 2 additions and 2 deletions
@@ -9,7 +9,7 @@ type ExternallyManagedButtonProps = {
};
export function ExternallyManagedButton({ pluginId, pluginStatus }: ExternallyManagedButtonProps) {
const externalManageLink = getExternalManageLink(pluginId);
const externalManageLink = `${getExternalManageLink(pluginId)}/?tab=installation`;
if (pluginStatus === PluginStatus.UPDATE) {
return (
+1 -1
View File
@@ -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 {
nameAsc = 'nameAsc',