* feat(catalog): set external manage link to installation tab
* fix(catalog): use pluginCatalogURL when getting external manage link
(cherry picked from commit 5d98155b5f)
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
co-authored by
Jack Westbrook
parent
af225e3370
commit
6603c809dd
+1
-1
@@ -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 (
|
||||
|
||||
@@ -189,7 +189,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',
|
||||
|
||||
Reference in New Issue
Block a user