Просмотр исходного кода

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

Johannes Schill 7 лет назад
Родитель
Сommit
363425d55e
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      public/app/features/dashboard/dashgrid/QueriesTab.tsx

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

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