Plugins: Hide update all plugins in cloud (#92597)

This commit is contained in:
Hugo Kiyodi Oshiro 2024-08-28 16:21:46 +02:00 committed by GitHub
parent f8af6f4eea
commit 01b9ad3789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ import { ReactElement, useState } from 'react';
import { useLocation } from 'react-router-dom-v5-compat';
import { SelectableValue, GrafanaTheme2, PluginType } from '@grafana/data';
import { locationSearchToObject } from '@grafana/runtime';
import { config, locationSearchToObject } from '@grafana/runtime';
import { Select, RadioButtonGroup, useStyles2, Tooltip, Field, Button } from '@grafana/ui';
import { Page } from 'app/core/components/Page/Page';
import { Trans } from 'app/core/internationalization';
@ -94,8 +94,10 @@ export default function Browse({ route }: GrafanaRouteComponentProps): ReactElem
</Button>
);
const hideUpdateAllButton = config.pluginAdminExternalManageEnabled && config.featureToggles.managedPluginsInstall;
return (
<Page navModel={navModel} actions={updateAll} subTitle={subTitle}>
<Page navModel={navModel} actions={hideUpdateAllButton ? undefined : updateAll} subTitle={subTitle}>
<Page.Contents>
<HorizontalGroup wrap>
<Field label="Search">