mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alerting): test results look better
This commit is contained in:
@@ -150,7 +150,7 @@ export class AlertTabCtrl {
|
||||
};
|
||||
|
||||
return this.backendSrv.post('/api/alerts/test', payload).then(res => {
|
||||
this.testResult = angular.toJson(res, true);
|
||||
this.testResult = res;
|
||||
this.testing = false;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -132,9 +132,7 @@
|
||||
</div>
|
||||
|
||||
<div class="gf-form-group" ng-if="ctrl.testResult">
|
||||
<pre>
|
||||
{{ctrl.testResult}}
|
||||
</pre>
|
||||
<json-tree root-name="result" object="ctrl.testResult" start-expanded="true"></json-tree>
|
||||
</div>
|
||||
|
||||
<div class="gf-form-group" ng-if="!ctrl.alert.enabled">
|
||||
|
||||
Reference in New Issue
Block a user