Procházet zdrojové kódy

react-panel: Options button should always be enabled now when Time Range-options are there

Johannes Schill před 7 roky
rodič
revize
363425d55e

+ 2 - 3
public/app/features/dashboard/dashgrid/QueriesTab.tsx

@@ -227,8 +227,7 @@ export class QueriesTab extends PureComponent<Props, State> {
 
 
   render() {
   render() {
     const { currentDatasource } = this.state;
     const { currentDatasource } = this.state;
-    const { hasQueryHelp, queryOptions } = currentDatasource.meta;
-    const hasQueryOptions = !!queryOptions;
+    const { hasQueryHelp } = currentDatasource.meta;
     const dsInformation = {
     const dsInformation = {
       title: currentDatasource.name,
       title: currentDatasource.name,
       imgSrc: currentDatasource.meta.info.logos.small,
       imgSrc: currentDatasource.meta.info.logos.small,
@@ -259,7 +258,7 @@ export class QueriesTab extends PureComponent<Props, State> {
     const options = {
     const options = {
       title: '',
       title: '',
       icon: 'fa fa-cog',
       icon: 'fa fa-cog',
-      disabled: !hasQueryOptions,
+      disabled: false,
       render: this.renderOptions,
       render: this.renderOptions,
     };
     };