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

closes #5921
This commit is contained in:
bergquist
2016-08-30 13:36:13 +02:00
parent 11a4ff0f8a
commit b55b7cde4b

View File

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