|
@@ -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 = '';
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|