mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
Plugins: Hide update all plugins in cloud (#92597)
This commit is contained in:
parent
f8af6f4eea
commit
01b9ad3789
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user