CacheSettingsDisable.tsx 348 B

1234567891011121314
  1. import React from 'react';
  2. import { Button } from '@grafana/ui';
  3. import { Props } from './DataSourceCache';
  4. export const CacheSettingsDisable = (props: Props) => {
  5. const { disableDataSourceCache, pageId } = props;
  6. return (
  7. <Button variant="destructive" onClick={() => disableDataSourceCache(pageId)}>
  8. Disable
  9. </Button>
  10. );
  11. };