PluginsList Panel: Redirect to catalog app for updating plugins (#34893)

* feat(pluginlistpanel): if catalog app is enabled redirect user if plugin is upgradable

* refactor(catalog): update copy if plugin is disabled
This commit is contained in:
Jack Westbrook
2021-05-31 13:53:40 +02:00
committed by GitHub
parent 98c849d4cc
commit 8c93899b15
3 changed files with 22 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { Page } from 'components/Page';
import { AppRootProps, NavModelItem } from '@grafana/data';
import { css } from '@emotion/css';
export const NotEnabled = ({ onNavChanged }: AppRootProps) => {
const node: NavModelItem = {
@@ -16,8 +17,16 @@ export const NotEnabled = ({ onNavChanged }: AppRootProps) => {
return (
<Page>
To enabled installing plugins, set the{' '}
<a href="https://grafana.com/docs/grafana/latest/plugins/catalog">Plugin Catalog</a> instructions
To enable installing plugins, please refer to the{' '}
<a
className={css`
text-decoration: underline;
`}
href="https://grafana.com/docs/grafana/latest/plugins/catalog"
>
Plugin Catalog
</a>{' '}
instructions
</Page>
);
};