mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -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) {
|
||||
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…
Reference in New Issue
Block a user