Browse Source

fix(alerting): remove error message when model is valid again

closes #5921
bergquist 9 years ago
parent
commit
b55b7cde4b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      public/app/features/alerting/alert_tab_ctrl.ts

+ 2 - 0
public/app/features/alerting/alert_tab_ctrl.ts

@@ -208,6 +208,8 @@ export class AlertTabCtrl {
           this.error = 'Currently the alerting backend only supports Graphite queries';
         } else if (this.templateSrv.variableExists(foundTarget.target)) {
           this.error = 'Template variables are not supported in alert queries';
+        } else {
+          this.error = '';
         }
       });
     }