ソースを参照

ux: minor change to alert list page

Torkel Ödegaard 8 年 前
コミット
b76958f07b

+ 3 - 1
public/app/core/components/UserPicker/UserPickerOption.tsx

@@ -1,4 +1,5 @@
-import React, { Component } from 'react';
+import React, { Component } from 'react';
+
 export interface IProps {
   onSelect: any;
   onFocus: any;
@@ -6,6 +7,7 @@ export interface IProps {
   isFocused: any;
   className: any;
 }
+
 class UserPickerOption extends Component<IProps, any> {
   constructor(props) {
     super(props);

+ 7 - 6
public/app/stores/AlertListStore/AlertListStore.ts

@@ -29,12 +29,13 @@ export const AlertListStore = types
       for (let rule of apiRules) {
         setStateFields(rule, rule.state);
 
-        if (rule.executionError) {
-          rule.info = 'Execution Error: ' + rule.executionError;
-        }
-
-        if (rule.evalData && rule.evalData.noData) {
-          rule.info = 'Query returned no data';
+        if (rule.state !== 'paused') {
+          if (rule.executionError) {
+            rule.info = 'Execution Error: ' + rule.executionError;
+          }
+          if (rule.evalData && rule.evalData.noData) {
+            rule.info = 'Query returned no data';
+          }
         }
 
         self.rules.push(AlertRule.create(rule));