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
pull/41089/head
Jack Westbrook 4 years ago committed by GitHub
parent 914d8d6f15
commit 5d98155b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/plugins/admin/components/InstallControls/ExternallyManagedButton.tsx
  2. 2
      public/app/features/plugins/admin/helpers.ts

@ -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 (

@ -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',

Loading…
Cancel
Save